Thursday, 18 May 2017

Uncaught TypeError: Cannot set property '_credentials' of undefined

I am building a Spotify web app and using npm package called spotify-web-api-node getting an error message saying that Cannot set property '_credentials' of undefined.

I have been doing console.log() cannot find where the error message in my code is at.

Here My Coded: https://github.com/brandonpowell/main-kdrusha-website/blob/master/src/SpotifyComponent/index.js

spotify-web-api.js:8 

    at SpotifyWebApi (spotify-web-api.js:8)
    at ReactCompositeComponent.js:306
    at measureLifeCyclePerf (ReactCompositeComponent.js:75)
    at ReactCompositeComponentWrapper._constructComponentWithoutOwner (ReactCompositeComponent.js:305)
    at ReactCompositeComponentWrapper._constructComponent (ReactCompositeComponent.js:280)
    at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:188)
    at Object.mountComponent (ReactReconciler.js:46)
    at ReactDOMComponent.mountChildren (ReactMultiChild.js:238)
    at ReactDOMComponent._createInitialChildren (ReactDOMComponent.js:697)
    at ReactDOMComponent.mountComponent (ReactDOMComponent.js:516)



via Brandon Powell

No comments:

Post a Comment