nitrojs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.build
MIT License
6.29k stars 519 forks source link

Issue with Nitropack 2.10.0 causing build failure in Nuxt project: #2843

Closed tobychidi closed 3 weeks ago

tobychidi commented 3 weeks ago

Environment

Environment:

Reproduction

Reproduction:

  1. Ensure Nitropack is updated to 2.10.0 in my case was after pnpm up --latest
  2. Run the build command for the Nuxt project

Describe the bug

After updating Nitropack to version 2.10.0, my Nuxt project fails to build with the error [worker reload] [worker init] C:/Users/tobychidi/Documents/GitHub/kaycee/Rotabliss/.nuxt/dev/index.mjs failed.

This happens after pnpm up --latest and pnpm dev

Additional context

Expected Result: The project should build successfully without errors.

Actual Result: The build fails with the error mentioned above.

Additional Information:

Logs

No response

pi0 commented 3 weeks ago

Can you please recreate your project lockfile (by removing pnpm-lock.yaml and try again? It should show 2.10.1 in both nuxi info and the nuxt dev banner.

tobychidi commented 3 weeks ago

Just updated to v2.10.2. The issue has been fixed.