I have a layer that have this dependency:
"dependencies": {
"@nuxtjs/seo": "^2.0.0-rc.21",
...
}
When i extend this layer from other i get this error:
[9:01:20 AM] ERROR [worker reload] [worker init] Package import specifier "#internal/nitro/virtual/app-config" is not defined in package /home/josep/Projects/RevaCode/Packages/Blog/blog-layer/node_modules/nitropack/package.json imported from /home/josep/Projects/RevaCode/Packages/Blog/blog-layer/node_modules/nitropack/dist/runtime/config.mjs
at importNotDefined (node:internal/modules/esm/resolve:290:10)
at packageImportsResolve (node:internal/modules/esm/resolve:740:9)
at moduleResolve (node:internal/modules/esm/resolve:904:16)
at defaultResolve (node:internal/modules/esm/resolve:1130:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap. (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)
If i install the dependency in the other layer it works but i dont like this work around, it should work without installing the dependency in each layer i reuse the first
Describe the bug
I have a layer that have this dependency: "dependencies": { "@nuxtjs/seo": "^2.0.0-rc.21", ... }
When i extend this layer from other i get this error: [9:01:20 AM] ERROR [worker reload] [worker init] Package import specifier "#internal/nitro/virtual/app-config" is not defined in package /home/josep/Projects/RevaCode/Packages/Blog/blog-layer/node_modules/nitropack/package.json imported from /home/josep/Projects/RevaCode/Packages/Blog/blog-layer/node_modules/nitropack/dist/runtime/config.mjs
at importNotDefined (node:internal/modules/esm/resolve:290:10) at packageImportsResolve (node:internal/modules/esm/resolve:740:9) at moduleResolve (node:internal/modules/esm/resolve:904:16) at defaultResolve (node:internal/modules/esm/resolve:1130:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38) at ModuleWrap. (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)
I think this error is the same that happens in nuxt module: https://github.com/nuxt/icon/issues/204
If i install the dependency in the other layer it works but i dont like this work around, it should work without installing the dependency in each layer i reuse the first
Reproduction
No response
System / Nuxt Info
No response