Back to Nuxt

NUXT_B5004

docs/errors/b5004.md

4.5.2659 B
Original Source

B5004

Nuxt found a standalone vite.config or webpack.config file next to your nuxt.config. Nuxt manages the bundler internally and ignores these files, so they are usually leftovers from a migration or a copied non-Nuxt project.

Resolution

Move the configuration into nuxt.config under the matching key, then delete the external file:

  • vite.config: use the vite key
  • webpack.config: use the webpack key
  • nitro.config: use the nitro key
  • postcss.config: use the postcss key
ts
export default defineNuxtConfig({
  vite: {
    // your Vite config here
  },
})

::read-more{to="/docs/getting-started/configuration"} ::