spotify-web-api-js
spotify-web-api-js copied to clipboard
Typescript example
Hi, am following readme instructions and I am getting error:
Uncaught TypeError: spotify_web_api_js_1.default is not a constructor
import SpotifyWebApi from 'spotify-web-api-js';
let spotify = new SpotifyWebApi();
Am I missing something obvious?
Hi @vmiheer. Could you share an example of your project, maybe using codesandbox?
I just tried the code on https://codesandbox.io/s/amazing-cherry-31eom?file=/src/index.js and it seems to be working.
I'm having the same problem in a Firebase Functions project. Literally same logic as in the shared codesandbox, and yet I as well get:
Uncaught TypeError: spotify_web_api_js_1.default is not a constructor
I'm sure the other dude was using this lib for Node as well. Might be a good idea to put a disclaimer up and linking to the Node version?