-
Notifications
You must be signed in to change notification settings - Fork 89
Description
Environment
npx nuxi info
Working directory: /Users/nico/sources/empty-app 11:10:13 AM
Nuxt project info: (copied to clipboard) 11:10:13 AM
- Operating System: Darwin
- Node Version: v22.3.0
- Nuxt Version: 3.12.3
- CLI Version: 3.12.0
- Nitro Version: 2.9.7
- Package Manager: yarn@1.22.22
- Builder: -
- User Config: compatibilityDate, devtools, modules
- Runtime Modules: @nuxt/icon@1.0.0
- Build Modules: -
Reproduction
I started from an empty app, then add a single nuxt module.
This module has been spotted in another context as being the source of the exact same issue. The link below is a reproduction context, with both dev and production run logs. It also provides the .output I got after using npx nuxi build.
https://github.com/kogratte/nuxt-icons-issue
Describe the bug
Working on another project, I have an issue Package import specifier "#internal/nitro/virtual/app-config" is not defined in package /Users/nico/sources/empty-app/node_modules/nitropack/package.json imported from /Users/nico/sources/empty-app/node_modules/nitropack/dist/runtime/config.mjs.
As we were not aware of the origin, we tried to deep dive to finaly use a "remove and try" method. We finally spotted that the simple presence of this module (nuxt/icons) in our reusable layer what at the origin of the issue. As soon as we remove it, things goes well.
We've been wondering if it could be due to a bad combination, and created the linked repository.
npx nuxi dev => Ends with error.
npx nuxi build => OK.
node .output/server/index.mj => Same error as nuxi dev.
Additional context
No response
Logs
See .log files in the linked repository.