Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Error #1

Open
jordangunderson opened this issue Sep 16, 2023 · 2 comments
Open

Syntax Error #1

jordangunderson opened this issue Sep 16, 2023 · 2 comments

Comments

@jordangunderson
Copy link

Following the instructions on the readme, I got:

$ npm run dev

> [email protected] 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
Copy link
Author

jordangunderson commented Sep 16, 2023

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant