question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Nuxt3] [npm run dev] Unexpected token '.'

See original GitHub issue

Environment

[VM - centos@localhost nuxt3]$ npx nuxi info
Nuxt CLI v3.0.0-27234175.2fb58ae                                                                      17:21:43

 ERROR  Unexpected token '.'                                                                          17:21:43

  at Loader.moduleStrategy (internal/modules/esm/translators.js:140:18)
  at async link (internal/modules/esm/module_job.js:42:21)

Describe the bug and expected behavior

> npm run dev
Nuxt CLI v3.0.0-27234175.2fb58ae                                                                      17:31:59

 ERROR  Unexpected token '.'                                                                          17:31:59

  at Loader.moduleStrategy (internal/modules/esm/translators.js:140:18)

Steps to reproduce

npx nuxi init nuxt3-app
cd nuxt3-app
npm install
npm run dev

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

11reactions
pi0commented, Oct 12, 2021

Node 12 is not supported. Please upgradeto Latest LTS (https://nodejs.org/en/)

6reactions
emilprivercommented, Oct 13, 2021

Have the same issue in an action on Github running ubuntu 20.04.3 and node 14.15.0.

Deploying on my Macbook locally to wrangler works perfect.

Skärmavbild 2021-10-13 kl  16 40 41

Read more comments on GitHub >

github_iconTop Results From Across the Web

nuxt.js - Nuxt3 Unexpected token '||='
I have problem when i use this command npm run dev. or npx nuxi dev.
Read more >
at loader.modulestrategy (internal/modules/esm/translators ...
Cannot use JSX with nodejs ESM module loader - Stack Overflow ... nuxt/framework[Nuxt3] [npm run dev] Unexpected token '.'#793. Created about 1 year...
Read more >
FATAL Unexpected token export during npm run dev-Vue.js
Coding example for the question NUXT: FATAL Unexpected token export during npm run dev-Vue.js.
Read more >
How to fix Nuxt.js unexpected token export error - YouTube
Setting up Nuxt.js is a pretty straightforward process but I hit at least one snag. Here's how I got around an issue I...
Read more >
Creating Server-side Rendered Vue.js Apps Using Nuxt.js
Then we just need to install dependencies and run the server: cd my-nuxt-project npm install # Or yarn npm run dev. There we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found