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

Unexpected token '||=' on node v<16 #15231

Closed
zecka opened this issue Oct 22, 2022 · 2 comments
Closed

Unexpected token '||=' on node v<16 #15231

zecka opened this issue Oct 22, 2022 · 2 comments

Comments

@zecka
Copy link
Contributor

zecka commented Oct 22, 2022

Environment


  • Operating System: Darwin
  • Node Version: v16.18.0
  • Nuxt Version: 3.0.0-rc.12
  • Nitro Version: -
  • Package Manager: yarn@1.22.10
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

  • nvm install 14.19.1
  • nvm use 14.19.1
  • npx nuxi init nuxt-app
  • cd nuxt-app
  • yarn install
  • yarn dev -o

Describe the bug

Unable to run nuxt 3 on node v14.19.1 or 14.18.0.

Got following error: Unexpected token '||='

Unable to install dependencies on v 14.16 or 15.14, got following error
error @vitejs/plugin-vue@3.1.2: The engine "node" is incompatible with this module. Expected version "^14.18.0 || >=16.0.0". Got "14.16.1"

Nuxt documentation tell that nuxt should work on node v 14.16

Maybe getting started page on documentation should be updated

Additional context

No response

Logs

500
Unexpected token '||='

at new Script (vm.js:102:7)
at createScript (vm.js:262:10)
at Object.runInThisContext (vm.js:310:10)
at ViteNodeRunner.directRequest (./node_modules/vite-node/dist/client.mjs:246:19)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async ViteNodeRunner.cachedRequest (./node_modules/vite-node/dist/client.mjs:128:12)
at async request (./node_modules/vite-node/dist/client.mjs:151:16)
at async ./node_modules/nuxt/dist/app/composables/index.mjs:46:31
at async ViteNodeRunner.directRequest (./node_modules/vite-node/dist/client.mjs:251:5)
at async ViteNodeRunner.cachedRequest (./node_modules/vite-node/dist/client.mjs:128:12)
@HigherOrderLogic
Copy link
Contributor

nuxt/framework#8299

@danielroe
Copy link
Member

This should be resolved in the edge channel, or in the next RC.

Let me know if not and I'll reopen.

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2022
@pi0 pi0 added bug and removed pending triage labels Oct 24, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants