Open supermar1010 opened 1 year ago
Did you try to remove lock file and clean install? This is related to deps conflict in lock file
I'm running into the same issue. A clean reinstall doesn't help and I tried with different package managers.
It started to work after I installed the unstorage
package.
I had this problem today. I nuked my yarn.lock and node_modules and re-installed. Works great.
My code was working in dev mode but it failed to work in production mode. and it was not working because the unstorage
module was missing. I installed it but it didn't fix the problem.
I ended up to manually copied the module to the output folder. you can add a postinstall
script and copy the folder from node_modules
to .output/server/node_modules
rm -r .output/server/node_modules/unstorage
cp -r ./node_modules/unstorage .output/server/node_modules/unstorage
Environment
Darwin
v18.16.0
3.4.2
2.3.3
yarn@1.22.19
vite
modules
,runtimeConfig
,htmlValidator
,typescript
,pages
,i18n
@nuxtjs/tailwindcss@6.6.6
,@nuxtjs/supabase@0.3.5
,@nuxtjs/i18n@8.0.0-beta.9
,@nuxt/content@2.6.0
,@nuxtjs/html-validator@1.2.5
-
Reproduction
Try to build the nuxt project with
yarn build
Describe the bug
Starting the project fails with:
Additional context
Works fine in deve env, but fails when building for production
Logs
No response