Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 11: Error: ENOENT: no such file or directory, open '/vercel/path0/.next/server/app/index.rsc' #770

Open
meiyizheng opened this issue Jun 27, 2024 · 5 comments

Comments

@meiyizheng
Copy link

After I finished chapter 11, there was a deployment failure in Vercel, it said:

Traced Next.js server files in: 34.808ms
Created all serverless functions in: 1.137s
Collected static files (public/, static/, .next/static): 5.466ms
Error: ENOENT: no such file or directory, open '/vercel/path0/.next/server/app/index.rsc'

@wuyou91
Copy link

wuyou91 commented Jun 27, 2024

I have the same error, and it works after I delete the experimental ppr.

@ndimoforaretas
Copy link

I had the same issue too and thanks to this tip from @wuyou91 I succeeded to deploy the project on vercel.🚀

So basically, in the mean time, the solution is to remove the changes related to "Partial Prerendering" demonstrated in chapter 10.🤔

cheers🤗

@PenumbraPL
Copy link

https://nextjs.org/docs/app/api-reference/next-config-js/partial-prerendering

Partial Prerendering is available in next@canary

After doing :
npm install next@canary
it works without deleting experimental ppr entry.

@wang-xinrong
Copy link

error resolved by removing ppr from chapter 10. Thanks guys!

@Lavdewangan1
Copy link

Thanks, it works after removing "Partial Prerendering", which makes sense as they told it's an experimental thing for now, but I think it should have been mentioned in the chapter as well that this error might occur.

nguyenmp pushed a commit to nguyenmp/nextjs-dashboard that referenced this issue Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants