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 fresh install #1630

Closed
heychazza opened this issue Oct 21, 2022 · 1 comment
Closed

Unexpected token '||=' on fresh install #1630

heychazza opened this issue Oct 21, 2022 · 1 comment

Comments

@heychazza
Copy link
Contributor

Environment


  • Operating System: Darwin
  • Node Version: v14.20.0
  • Nuxt Version: 3.0.0-rc.12
  • Nitro Version: 0.6.0
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: modules
  • Runtime Modules: @nuxt/content@2.2.0
  • Build Modules: -

Reproduction

Create a fresh Nuxt 3 Content project like so:
npx nuxi init content-app -t content

Describe the bug

[nuxt] [request error] [unhandled] [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)

Additional context

No response

Logs

No response

@heychazza
Copy link
Contributor Author

For others who come across this, turns out you need Node 16, I was running Node 14.

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