`nuxi dev` does not work properly
See original GitHub issueEnvironment
- 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:
- Created a year ago
- Comments:12 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great. It seems this issue is resolved.
@kecrily Note that you currently need to use
--shamefully-hoist
with pnpm.remake
pnpm i --shamefully-hoist
after that it worksnode v18.4.0 pnpm 7.5.1