-
Notifications
You must be signed in to change notification settings - Fork 26.1k
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
Error: ENOENT: no such file or directory, lstat '/app/.next/server/app' #44442
Comments
I'm hitting similar issue after upgrading to Node v18. File path works locally but on Vercel, it's unable to find the file. |
I'm having the same issue on |
…re is no `app/` page (#51993) ### What? This PR fixes build crashing when `output: 'standalone'` and `experimental.appDir` is enabled but there is no app pages. ### How? It does that by checking whether `.next/server/app` exists before copying the folder to `.next/standalone/...` Closes #51828 Fixes #44442 Fixes #44120
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue
private repo
To Reproduce
Describe the Bug
Expected Behavior
No build error
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: