Open Arkmind opened 2 years ago
In order to fix it temporarly you can use
"esModuleInterop": true
in your tsconfig.json
I fixed this like so:
import SpotifyWebApi = require('spotify-web-api-node');
I fixed this like so:
import SpotifyWebApi = require('spotify-web-api-node');
this syntax doesn't even make sense
you either import it with ES6 (import {} from '') or ESM (require())
Versions :
Environment :
NestJS
(https://docs.nestjs.com/)Code of the Service :
Error :
How to reproduce : Create new service containing SpotifyWebApi and launch the app