_nuxt/empty.js was preloaded using link but not used within a few seconds
For some reason my app tries to load _nuxt/empty.js when nuxt-vite is activated. This doesn't happen when the app is loaded without nuxt-vite activated.
When I create an empty empty.js file under _nuxt the error is gone.
Versions
nuxt-vite: 0.3.2 nuxt: 2.15.8
Reproduction
Load any page of the app.
Configuration:
vite: {
optimizeDeps: {
include: [
'cookie'
],
},
css: {
preprocessorOptions: {
scss: {
additionalData: `
@import "@/assets/scss/_mixins.scss";
@import "@/assets/scss/_variables.scss";
`,
},
},
},
},
// When I remove this, same result
buildDir: process.env.BUILD_DIR ? `${process.env.BUILD_DIR}/v${version}` : '.nuxt',
Should be solved on 0.3.3
@pi0 it's still around with 0.3.3 unfortunately
Would you please try on 0.3.4?
👌 The error is resolved.
I still get this warning though:
Is that a problem with a cache or something?
That's an unrelated manifest issue caused by a workaround we used to have a placeholder entry but is not being actually used. You can ignore it for now. Will keep issue open until fixing :)
Amazing thanks 🙏🏽