Markkop / Multiple-Playlist-deleter

A simple app to delete multiple spotify playlists at once.
https://multiple-playlist-deleter-markkop.vercel.app/
5 stars 0 forks source link

Syntax Error #1

Open jordangunderson opened 1 year ago

jordangunderson commented 1 year ago

Following the instructions on the readme, I got:

$ npm run dev

> multiple-playlist-deleter@1.0.0 dev
> next dev

/mypath/Multiple-Playlist-deleter/node_modules/next/dist/cli/next-dev.js:310
            showAll: args["--show-all"] ?? false,
                                         ^

SyntaxError: Unexpected token '?'
jordangunderson commented 1 year ago

It looks like the ?? operator was introduced in Node 14, and thus the syntax error. (My version of Ubuntu was running Node v12.22.9.)

Uninstalling nodejs then reinstalling a current version via snap worked for me on Ubuntu:

sudo apt-get remove nodejs

snap install node

There is probably a better way to do that.

Not sure whether it make sense to edit the readme, given the above.

jordangunderson commented 1 year ago

You may also wish to specify that the "Redirect URI" field in the Spotify plugin should be set to http://localhost:3000/.