错误:ENOENT:没有这样的文件或目录,打开 '/vercel/path0/.next/server/app/index.rsc vercel

问题描述 投票:0回答:1

嗨,我目前正在学习反应 第 10 章之后 ( https://nextjs.org/learn/dashboard-app/partial-prerendering )

我遇到了问题:“错误:ENOENT:没有这样的文件或目录,打开'/vercel/path0/.next/server/app/index.rsc'”当我将其推送到github存储库时(https://github) .com/cuonglamphu/nextjs-practice

我被困了两天,有人有解决方案吗,请帮助我enter image description here

在我尝试添加 2 条评论并推送之后

enter image description here

部署失败

enter image description here

next.js vercel
1个回答
0
投票

您可以通过删除实验性部分预渲染或运行

pnpm i react@canary
以使用 next

的金丝雀版本来解决此问题
最新问题
© www.soinside.com 2019 - 2024. All rights reserved.