-
Notifications
You must be signed in to change notification settings - Fork 2.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
Nextjs 13.4.3 ssr Error: ENOENT: no such file or directory, lstat '/codebuild/output/src554686390/src/hkv_3_nextjs/.next/server/app'] #11404
Comments
Hello, @dgastudio 👋 and thanks for opening this issue. Can you share what version of Amplify you're currently using (didn't see it in your |
Hello @cwomack thank you! |
@dgastudio, appreciate the quick replies and confirmation. While there's still some polishing going on to fully support the new app directory feature with Next.js, there's some helpful documentation for it here. If you have further issues or questions, feel free to reply back or open a new issue as needed. |
Hello! I'm also getting the same error message in the AWS Amplify Console. The app builds fine locally.
I reviewed the docs provided in the previous comment and I had them applied to my app already. Is there a specific setting I should be modifying to resolve this issue? Is there a version that is not conflicting that we can use? Thanks! |
Hi @dannyk08 since it sounds like the issue is happening while deploying on Hosting. Due to this, I recommend either opening an issue with the Hosting repo, or finding a similar issue already open. Thanks! |
Hey @nadetastic Thanks for checking in! |
i found out that i can't have a folder named |
Before opening, please confirm:
JavaScript Framework
Next.js
Amplify APIs
Not applicable
Amplify Categories
Not applicable
Environment information
Describe the bug
Build error occurred
2023-05-24T20:46:34.263Z [WARNING]: [Error: ENOENT: no such file or directory, lstat '/codebuild/output/src554686390/src/hkv_3_nextjs/.next/server/app'] {
errno: -2,
code: 'ENOENT',
syscall: 'lstat',
path: '/codebuild/output/src554686390/src/hkv_3_nextjs/.next/server/app'
}
Expected behavior
build should be completed
Reproduction steps
amplify connected to gitlab repo, auto deploy
Code Snippet
// Put your code below this line.
Log output
The text was updated successfully, but these errors were encountered: