fayazara / zooper

Zooper - a beautiful and minimal portfolio site made with Nuxt 3, Nuxt content module and tailwindcss
https://zooper.pages.dev
242 stars 45 forks source link

Unable to deploy #4

Open HenryMoreau opened 1 month ago

HenryMoreau commented 1 month ago

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

mrschwartx commented 1 month ago

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.

harshmange44 commented 1 month ago

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 commented 1 month ago

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.