zooper icon indicating copy to clipboard operation
zooper copied to clipboard

Unable to deploy

Open HenryWHU0503 opened this issue 1 year ago • 3 comments

the deployment on vercel with Nuxt.js faced unpredictable wrong 图片

HenryWHU0503 avatar Aug 04 '24 08:08 HenryWHU0503

That indicate Vercel might fail to find certain dependencies if they are not listed in dependencies or are only in devDependencies. Make sure that all required packages for the build are listed under dependencies in your package.json. Verify that your postcss.config.js file includes postcss-custom-properties.

agussyahrilmubarok avatar Aug 27 '24 15:08 agussyahrilmubarok

Hi @agussmkertjhaan , i was facing the same error, i added 'postcss-custom-properties' dependency and fixed this error but now facing this: ERROR [worker reload] [worker init] Package subpath './runtime' is not defined by "exports" in /Users/harshmange/Projects/portfolio-v2-test/node_modules/nitropack/package.json imported from /Users/harshmange/Projects/portfolio-v2-test/.nuxt/dev/index.mjs

Could you pls help to setup this project?

harshmange44 avatar Aug 28 '24 11:08 harshmange44

Hi @agussmkertjhaan , i was facing the same error, i added 'postcss-custom-properties' dependency and fixed this error but now facing this: ERROR [worker reload] [worker init] Package subpath './runtime' is not defined by "exports" in /Users/harshmange/Projects/portfolio-v2-test/node_modules/nitropack/package.json imported from /Users/harshmange/Projects/portfolio-v2-test/.nuxt/dev/index.mjs

Could you pls help to setup this project?

Some more context: WARN (node-resolve plugin) Could not resolve import "nitropack/runtime" in /Users/harshmange/Projects/portfolio-v2-test/node_modules/@nuxt/content/dist/runtime/server/plugins/refresh-cache.js using exports defined in /Users/harshmange/Projects/portfolio-v2-test/node_modules/nitropack/package.json.

WARN "nitropack/runtime" is imported by "node_modules/@nuxt/content/dist/runtime/server/plugins/refresh-cache.js", but could not be resolved – treating it as an external dependency.

harshmange44 avatar Aug 28 '24 11:08 harshmange44