-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
nitrojs/nitro
#936Description
Environment
- Operating System:
Windows_NT
- Node Version:
v16.17.0
- Nuxt Version:
3.1.2
- Nitro Version:
2.1.1
- Package Manager:
yarn@1.22.18
- Builder:
vite
- User Config:
-
- Runtime Modules:
-
- Build Modules:
-
and stackblitz
Reproduction
https://stackblitz.com/edit/nuxt-starter-kqf57y?file=README.md
Describe the bug
Hi 👋 !
Nuxt build in 3.1.2 logs a warning about circular dependency
Additional context
No response
Logs
`
Export "useNitroApp" of module "node_modules/nitropack/dist/runtime/app.mjs" was reexported through module "node_modules/nitropack/dist/runtime/index.mjs" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
Either change the import in "node_modules/nuxt/dist/core/runtime/nitro/renderer.mjs" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.
baronkoko, JPustkuchen, Tommo123, Applelo, gitFoxCode and 4 more