Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev server crashing when nuxt is restarted #346

Open
geminigeek opened this issue Feb 21, 2024 · 0 comments
Open

Dev server crashing when nuxt is restarted #346

geminigeek opened this issue Feb 21, 2024 · 0 comments
Labels
bug Something isn't working windows

Comments

@geminigeek
Copy link

geminigeek commented Feb 21, 2024

Environment

Nuxt project info:


  • Operating System: Windows_NT
  • Node Version: v20.10.0
  • Nuxt Version: 3.10.2
  • CLI Version: 3.10.1
  • Nitro Version: 2.8.1
  • Package Manager: pnpm@8.15.2
  • Builder: -
  • User Config: devtools
  • Runtime Modules: -
  • Build Modules: -

Reproduction

this is just as defined on this page https://nuxt.com/docs/guide/directory-structure/modules

https://github.com/geminigeek/nuxt3-module-edit-error-windows

Describe the bug

just edit anything in ./modules/hello/index.ts , press save , dev server crashes with this error.
however if i edit and save anything in ./modules/hello/runtime/api-route.ts , dev server and hmr works as expected.


 ERROR  [unhandledRejection] kill ENOSYS                                                                                                                    1:31:02 am

  at ChildProcess.kill (node:internal/child_process:509:13)
  at kill (/F:/node-local/nuxt-apps/nuxt3-module-edit-error-windows/node_modules/.pnpm/nuxi@3.10.1/node_modules/nuxi/dist/chunks/dev.mjs:246:17)
  at restart (/F:/node-local/nuxt-apps/nuxt3-module-edit-error-windows/node_modules/.pnpm/nuxi@3.10.1/node_modules/nuxi/dist/chunks/dev.mjs:251:5)
  at ChildProcess.<anonymous> (/F:/node-local/nuxt-apps/nuxt3-module-edit-error-windows/node_modules/.pnpm/nuxi@3.10.1/node_modules/nuxi/dist/chunks/dev.mjs:280:9)
  at ChildProcess.emit (node:events:514:28)
  at emit (node:internal/child_process:951:14)
  at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

Additional context

related issue nuxt/nuxt#25115

Logs

No response

@geminigeek geminigeek changed the title Dev server crashing on saving module entry point file ./module/<anyModule>/index.ts file on Windows 10 Dev server crashing on saving module entry point file ./modules/<anyModule>/index.ts file on Windows 10 Feb 21, 2024
@manniL manniL added the windows label Feb 21, 2024
@danielroe danielroe transferred this issue from nuxt/nuxt Feb 22, 2024
@danielroe danielroe added the bug Something isn't working label Feb 22, 2024
@danielroe danielroe changed the title Dev server crashing on saving module entry point file ./modules/<anyModule>/index.ts file on Windows 10 Dev server crashing when nuxt is restarted Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows
Projects
None yet
Development

No branches or pull requests

3 participants