Alex
Alex
NNuxt
Created by Alex on 9/11/2024 in #❓・help
[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?
2 replies