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.

`nuxi dev` does not work properly

See original GitHub issue

Environment

  • Operating System: Windows_NT
  • Node Version: v16.14.1
  • Nuxt Version: 3.0.0-27494471.1091d45
  • Package Manager: pnpm@6.32.4
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

pnpm run nuxi dev

Describe the bug

nuxi dev does not work properly

Additional context

No response

Logs

ERROR  Failed to resolve force included dependency: vue                                                    
      20:50:20


 ERROR  Failed to resolve import "ufo" from "virtual:C:\Users\kecrily\Desktop\nuxt-app\.nuxt\paths.mjs". Does the file exist?


 ERROR  Failed to resolve import "vue" from "virtual:C:\Users\kecrily\Desktop\nuxt-app\.nuxt\components.plugin.mjs". Does the file exist?


 ERROR  Failed to resolve import "vue" from "app.vue". Does the file exist?                                 
      20:50:21

i Vite client warmed up in 8228ms                                                                           
      20:50:28
i Vite server warmed up in 5749ms                                                                           
      20:50:28
√ Vite server built in 8106ms                                                                               
      20:50:31

 ERROR  [worker reload] [worker init] Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'

  at new NodeError (node:internal/errors:371:5)
  at throwIfUnsupportedURLProtocol (node:internal/modules/esm/resolve:1035:11)
  at defaultResolve (node:internal/modules/esm/resolve:1105:3)
  at ESMLoader.resolve (node:internal/modules/esm/loader:530:30)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:251:18)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:40)
  at link (node:internal/modules/esm/module_job:78:36)

√ Nitro built in 2325 ms                                                                                    
nitro 20:50:33

 ERROR  [worker reload] [worker init] Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'

  at new NodeError (node:internal/errors:371:5)
  at throwIfUnsupportedURLProtocol (node:internal/modules/esm/resolve:1035:11)
  at defaultResolve (node:internal/modules/esm/resolve:1105:3)
  at ESMLoader.resolve (node:internal/modules/esm/loader:530:30)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:251:18)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:79:40)
  at link (node:internal/modules/esm/module_job:78:36)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

8reactions
danielroecommented, Apr 12, 2022

Great. It seems this issue is resolved.

@kecrily Note that you currently need to use --shamefully-hoist with pnpm.

3reactions
rifton007commented, Jul 13, 2022

remake pnpm i --shamefully-hoist after that it works


node v18.4.0 pnpm 7.5.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

nuxi dev fails with Error: Cannot find module fsevents #612
When you are building for a Lambda, Netlify Function, or Edge handler then you don't have any use for production dependencies in the...
Read more >
Nuxt 3 impossible to run dev - Stack Overflow
I tried another way of install: instead of "npx nuxi init" i did "yarn create nuxt-app". It resolve my problem of having to...
Read more >
Nuxt 3 first steps. - ITNEXT
To fix this problem I've used the Webpack, but here it didn't go without problems as well. Something is wrong with HMR (Hot...
Read more >
Commands and Deployment - Nuxt
nuxt dev - Launch the development server. · nuxt build - Build and optimize your application with webpack for production. · nuxt start...
Read more >
Set up Linux on your Chromebook - Google Support
Important: If you use your Chromebook at work or school, you might not be able to use Linux. ... Next to "Linux development...
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