NuxtN
Nuxt3w ago
Mazino

nuxt3 broken production vs working dev

Hello guys, i am using vuejs 3 with nuxt 3.. every thing works fine while "npm run dev" but when i try "npm run build / npm run preview" production simulation does not work i have a lot of error in console. it seems like a commun error in nuxt 3 but not clear response about it.

in production simulation i will have "no suche file directory" over -> .output/server/chunks/public/_nuxt/index.CMVaPzC1.css

which is normal since the "index.CMVaPzC1.css" is generated under :
.output/public/_nuxt/index.CMVaPzC1.css
and not under
.output/server/chunks/public/_nuxt/index.CMVaPzC1.css

clearly nuxt is searching in the wrong directory.. i tried to changed in nuxt.conf.js file directory but no results..

any tips about this issue guys ?
Was this page helpful?