NuxtN
Nuxt12mo ago
4 replies
luhu

"#build/nuxt.config.mjs" is not defined

Hi, I'm trying to migrate away from auto imports and after fixing every import after disabling it in the nuxt config, I can't run the unit tests anymore. They do complain about Package import specifier "#build/nuxt.config.mjs" is not defined in package /node_modules/nuxt/package.json imported from /node_modules/nuxt/dist/app/nuxt.js.

I've tried mocking the file or adding it as an alias in the vitest config but it's not working. Any idea on how to fix it?
Was this page helpful?