Jamming Spotify method undefined TypeError

I can’t seems to find the problem. I imported the Spotify.js file correctly and I don’t know why the Spotify methods are undefined.
Thank you.

On your github the savePlaylist() method saves the token that is generated into a variable called aToken.

Which is not used in your headers variable like you have in the search() method.


1 Like

It’s still showing error.


Remove curly braces,


I tried, still TypeError.

Are you doing this in Firefox by any chance, I just downloaded your code and it pops with this error in Firefox, does not display this error with Chrome and the new IE Edge(which is basically chrome)

Also you have a class that should be className in TrackList.js.