framework icon indicating copy to clipboard operation
framework copied to clipboard

ERROR [worker reload] [worker init] on project launch

Open Nathan-Binkley opened this issue 2 years ago • 3 comments

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

Nathan-Binkley avatar May 26 '22 22:05 Nathan-Binkley

Do you still experience this?

danielroe avatar Jul 04 '22 14:07 danielroe

Do you still experience this?

I met this when I try to upgrade 2 to bridge, I use M2 MacBook Pro.

d2FuZ3h1ZG9uZw avatar Aug 09 '22 13:08 d2FuZ3h1ZG9uZw

same here on WSL.

MarcProe avatar Sep 22 '22 20:09 MarcProe

This is an issue for Nuxt 3. i'm closing this but if you can provide a reproduction I'll happily reopen.

danielroe avatar Nov 02 '22 20:11 danielroe