N
Nuxt4mo ago
Alexi

[worker reload] [worker init] Package import specifier "#internal/nitro/virtual/app-config" is not..

Not sure how to fix this. I've reserched on GitHub and found that a similar issue was coming from nuxt/icon, but I don't use it directly and it was fixed here https://github.com/nuxt/icon/pull/249 Full error
[7:38:32 AM] ERROR [worker reload] [worker init] Package import specifier "#internal/nitro/virtual/app-config" is not defined in package /Users/<...>/node_modules/.pnpm/[email protected][email protected]/node_modules/nitropack/package.json imported from /Users/<...>/node_modules/.pnpm/[email protected][email protected]/node_modules/nitropack/dist/runtime/config.mjs

at importNotDefined (node:internal/modules/esm/resolve:283:10)
at packageImportsResolve (node:internal/modules/esm/resolve:733:9)
at moduleResolve (node:internal/modules/esm/resolve:898:16)
at defaultResolve (node:internal/modules/esm/resolve:1038:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:554:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:523:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:246:38)
at ModuleJob._link (node:internal/modules/esm/module_job:126:49)

ℹ Vite server warmed up in 441ms
[7:38:32 AM] ERROR [worker reload] [worker init] Package import specifier "#internal/nitro/virtual/app-config" is not defined in package /Users/<...>/node_modules/.pnpm/[email protected][email protected]/node_modules/nitropack/package.json imported from /Users/<...>/node_modules/.pnpm/[email protected][email protected]/node_modules/nitropack/dist/runtime/config.mjs

at importNotDefined (node:internal/modules/esm/resolve:283:10)
at packageImportsResolve (node:internal/modules/esm/resolve:733:9)
at moduleResolve (node:internal/modules/esm/resolve:898:16)
at defaultResolve (node:internal/modules/esm/resolve:1038:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:554:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:523:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:246:38)
at ModuleJob._link (node:internal/modules/esm/module_job:126:49)

ℹ Vite server warmed up in 441ms
package.json:
{
"name": "nuxt-app",
"type": "module",
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare",
"format": "prettier --write src/",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@clerk/backend": "^1.9.2",
"@nuxt/image": "^1.8.0",
"node-fetch-native": "^1.6.4",
"vue-clerk": "^0.6.9"
},
"devDependencies": {
"@nuxthub/core": "^0.7.12",
"@nuxtjs/tailwindcss": "^6.12.1",
"@types/node": "^20.16.5",
"eslint": "^9.10.0",
"nuxt": "^3.13.1",
"typescript": "latest"
}
}
{
"name": "nuxt-app",
"type": "module",
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare",
"format": "prettier --write src/",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@clerk/backend": "^1.9.2",
"@nuxt/image": "^1.8.0",
"node-fetch-native": "^1.6.4",
"vue-clerk": "^0.6.9"
},
"devDependencies": {
"@nuxthub/core": "^0.7.12",
"@nuxtjs/tailwindcss": "^6.12.1",
"@types/node": "^20.16.5",
"eslint": "^9.10.0",
"nuxt": "^3.13.1",
"typescript": "latest"
}
}
Any suggestions?
GitHub
fix: import server utils from #imports by pi0 · Pull Request #249...
Resolves #204 (tested against reproduction in #204 (comment)). When having multiple versions of nitropack installed (reproduction above has one in the playground and one in top level) for some reas...
1 Reply
Alexi
AlexiOP4mo ago
I think it coming from @nuxthub/core package for me, I've created an issue here https://github.com/nuxt-hub/core/issues/274
GitHub
Package import specifier error after adding `"@nuxthub/core": "^0.7...
Describe the bug ERROR [worker reload] [worker init] Package import specifier "#internal/nitro/virtual/app-config" is not defined in package. Steps to reproduce Steps to reproduce the beh...
Want results from more Discord servers?
Add your server