Package import specifier "#imports" is not defined

Hey as you can see from the Title I am experiencing this error. I am running Nuxt 3 (with v4 compat) and color-mode is giving that error once I open my website. these are my packages:
"dependencies": {
"@nuxt/ui": "^2.17.0",
"nuxt": "^3.12.2",
"nuxt-auth-utils": "^0.1.0",
"nuxt-neo4j": "^0.0.4",
"vue": "^3.4.29",
"vue-router": "^4.3.3",
"zod": "^3.23.8"
},
"dependencies": {
"@nuxt/ui": "^2.17.0",
"nuxt": "^3.12.2",
"nuxt-auth-utils": "^0.1.0",
"nuxt-neo4j": "^0.0.4",
"vue": "^3.4.29",
"vue-router": "^4.3.3",
"zod": "^3.23.8"
},
and this is the full error:
[nuxt] [request error] [unhandled] [500] Package import specifier "#imports" is not defined in package G:\Project X\Web\account\node_modules\@nuxtjs\color-mode\package.json imported from G:\Project X\Web\account\node_modules\@nuxtjs\color-mode\dist\runtime\plugin.server.mjs
at __node_internal_captureLargerStackTrace (node:internal/errors:497:5)
at new NodeError (node:internal/errors:406:5)
at importNotDefined (node:internal/modules/esm/resolve:257:10)
at packageImportsResolve (node:internal/modules/esm/resolve:678:9)
at moduleResolve (node:internal/modules/esm/resolve:832:16)
at defaultResolve (node:internal/modules/esm/resolve:1043:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:228:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)
[nuxt] [request error] [unhandled] [500] Package import specifier "#imports" is not defined in package G:\Project X\Web\account\node_modules\@nuxtjs\color-mode\package.json imported from G:\Project X\Web\account\node_modules\@nuxtjs\color-mode\dist\runtime\plugin.server.mjs
at __node_internal_captureLargerStackTrace (node:internal/errors:497:5)
at new NodeError (node:internal/errors:406:5)
at importNotDefined (node:internal/modules/esm/resolve:257:10)
at packageImportsResolve (node:internal/modules/esm/resolve:678:9)
at moduleResolve (node:internal/modules/esm/resolve:832:16)
at defaultResolve (node:internal/modules/esm/resolve:1043:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:228:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)
3 Replies
Just Simeon
Just SimeonOP5mo ago
so far my website ist completely empty, in my index I have a div with a "Hello" Text okay I just removed nuxt ui from my modules in the nuxt.config.ts and it works again bump
Alex
Alex3mo ago
Have you found a resolution? @Just Simeon
Just Simeon
Just SimeonOP3mo ago
nope
Want results from more Discord servers?
Add your server