framework
framework copied to clipboard
ERROR [worker reload] [worker init] on project launch
Environment
Fails on:
------------------------------
- Operating System: `Windows_NT`
- Node Version: `v16.15.0`
- Nuxt Version: `3.0.0-rc.3`
- Package Manager: `[email protected]`
- Builder: `vite`
- User Config: `-`
- Runtime Modules: `-`
- Build Modules: `-`
------------------------------
Succeeds on:
------------------------------
- Operating System: `Windows_NT`
- Node Version: `v16.15.0`
- Nuxt Version: `3.0.0-rc.3`
- Package Manager: `[email protected]`
- Builder: `vite`
- User Config: `-`
- Runtime Modules: `-`
- Build Modules: `-`
------------------------------
(Note, these are the same)
Reproduction
Init a project in windows CMD.
Attempt to run the project outside of windows CMD (git bash, WSL, VSCode with linux file system types enabled)
Describe the bug
When I run the project npm run dev
on windows CMD, the project launches successfully and without issue. When I launch in a Unix based system (Git Bash, VSCode, etc), I get an error such as
at new NodeError (node:internal/errors:372:5)
at finalizeResolution (node:internal/modules/esm/resolve:437:11)
at moduleResolve (node:internal/modules/esm/resolve:1009:10)
at defaultResolve (node:internal/modules/esm/resolve:1218:11)
at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)
at link (node:internal/modules/esm/module_job:78:36)
It throws this exact error after √ Vite server built in 1627ms
and after √ Nitro built in 212 ms
. The server build takes significantly longer than if I was cold-starting on windows CMD as well (~700 ms vs the over 1500 on unix based terminals).
Additional context
No response
Logs
No response
Do you still experience this?
Do you still experience this?
I met this when I try to upgrade 2 to bridge, I use M2 MacBook Pro.
same here on WSL.
This is an issue for Nuxt 3. i'm closing this but if you can provide a reproduction I'll happily reopen.