10000 Circular dependency in nuxt with nitropack · Issue #18789 · nuxt/nuxt · GitHub
[go: up one dir, main page]

Skip to content
Circular dependency in nuxt with nitropack #18789
@huang-julien

Description

@huang-julien

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0