[Error: ENOENT: no such file or directory, open 'F:\FinalYear\frontend\.next\BUILD_ID'] #58523
Replies: 5 comments 1 reply
-
for me, 'next build' does not generate 'BUILD_ID' file randomly. it happens in AWS CodeBuild and generated .next folder does not have BUILD_ID file, so server deploy fails. |
Beta Was this translation helpful? Give feedback.
-
after some investigation, we found that it's RAM shortage. we increased RAM to 7GB model, and problem fixed. idk which system are you using, but hope it helps |
Beta Was this translation helpful? Give feedback.
-
Just Created .env and and start with and run npm run dev |
Beta Was this translation helpful? Give feedback.
-
Same issue here and thanks to this info I solved the same issue (server not starting because .next/BUILD_ID missing) for an on-premise Jenkins build by adding NODE_OPTIONS in front of npm run build: |
Beta Was this translation helpful? Give feedback.
-
In my case the problem has gone when I included package-lock.json in docker container. Error was the same but when running inside docker container. |
Beta Was this translation helpful? Give feedback.
-
Summary
I am working on a next app. I have tried to rebuild it but id doesn't works and am facing the below error:
PS F:\FinalYear\frontend> npx next start
▲ Next.js 14.0.2
[Error: ENOENT: no such file or directory, open 'F:\FinalYear\frontend.next\BUILD_ID'] {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'F:\FinalYear\frontend\.next\BUILD_ID'
}
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions