-
-
Notifications
You must be signed in to change notification settings - Fork 628
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
Unable to start project after creation (#internal/nitro/virtual/app-config is not defined) #2736
Comments
Reverting the change in this PR: #13138 For the time being (until this is debugged and fixed), this change is reverted and the Nuxt module will still be built with the nuxt-module-builder. The changed build-setup led to an error in `nuxt dev` and the navigation in the E2E test apps did not work. The error message: ``` ERROR [worker reload] [worker init] Package import specifier "#internal/nitro/virtual/app-config" is not defined in package /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/nitropack/package.json imported from /Users/sigridh/Documents/DEV/sentry-javascript-examples/node_modules/nitropack/dist/runtime/config.mjs ``` Similar errors were reported here: - nuxt/content#2736 - nuxt/icon#204 - nuxt/nuxt#13801
I also had this when switching from Yarn to PNPM. Removing the node_modules folder and run |
Interesting 🤔 for me it didn't work, the project created with pnpm and reinstalled node_modules still triggers the same error 😕 |
I've tried to create a new project after the Nuxt release, but the issue persists
Is there any workaround by any chance? @farnabaz @atinux @benjamincanac |
In case you're still looking for a workaround adding overrides to your package.json worked for me as mentioned here: nuxt/icon#204 (comment)
Only version 2.9.5 worked for me. |
I tried the above (overriding the nitropack) but it still persists. |
Same observation here. From other similar issues, it seems to be related to imports, which are currently done on "nitropack/**". They should instead be done using "#imports", or at least, this his how it has been solved elsewhere. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
Environment
Darwin
v22.5.1
3.12.4
3.12.0
2.9.7
[email protected]
-
devtools
,modules
,routeRules
,compatibilityDate
@nuxt/[email protected]
-
Reproduction
Create a new project using
npx nuxi@latest init docs -t content
withpnpm
package manager and try to start dev server by runningpnpm run dev
.Describe the bug
Once the dev server starts, there is an error that blocks website from loading, here are the details:
Additional context
Here is the
package.json
for the application (identical to the default Nuxt Content sample app)Logs
No response
The text was updated successfully, but these errors were encountered: