-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Error: Unexpected token '||=' #15203
Comments
According to @danielroe , this issue is related to node version, I need to upgrade node to >= 15, it'll be fixed in future releases. |
Since nuxt seems not work on node v < 16 -> update documentation https://github.com/nuxt/framework/issues/8407 https://github.com/nuxt/framework/issues/8335
I have not changed my node version - I am running 14.18.1. I have this exact error after installing nuxi globally using pnpm. Prior to that when I ran the dev server in rc.12 there were no errors at all. ***However, if I downgrade to rc.11 the dev server starts without the error. Can anyone help me to uninstall the globally installed nuxi? '''pnpm uninstall nuxi --global''' doesn't seem to work. |
This is related to the build script as -for now- it is only supported on node 15+ because of Logical OR assignment (||=), I guess this behavior is fixed in the edge channel, or in the next RC #15250 .
I used to uninstall global binaries with |
Environment
Darwin
v14.18.3
3.0.0-rc.12
-
pnpm@7.6.0
vite
-
-
-
Reproduction
Create new project using nuxi
Describe the bug
Got an error:
Unexpected token '||='
on start up.Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: