After migrating my website to Nuxt 4, I could not deploy it neither on my server manually (
pnpm build
pnpm build
and copy the
.output
.output
folder) nor on Cloudflare Workers. After running the build successfully, the resulting output does not work. I get the following error whenever I try to open the project:
No such module \"home/runner/work/portfolio/portfolio/node_modules/.pnpm/[email protected]/node_modules/vue/index.mjs\".
No such module \"home/runner/work/portfolio/portfolio/node_modules/.pnpm/[email protected]/node_modules/vue/index.mjs\".
Bear in mind, the dev server works fine locally. Also, I can build locally and preview just fine as well, which is why it's confusing me. I don't have anything out of the ordinary in terms of external packages, just TailwindCSS, octokit, and vueuse. My repo is here