Next.js Discord

Discord Forum

Can't Find Production Build in 'path/.next' Directory

Unanswered
CyberNinja posted this in #help-forum
Open in Discord
Hi! 👋

I'm encountering a major issue that's been driving me crazy. Every time I try to run next start after a successful next build, it keeps throwing the dreaded "could not find a production build".

Here are the details:

- Next.js Version: 13.4.5
- Build Process: No errors or warnings during next build, and the .next directory is created as expected.
- Directory Path: The .next directory is definitely present in the /workspaces/cavemanapp directory. I double- and triple-checked the spelling and everything seems fine.

I've tried all the usual tricks like deleting the .next directory and rebuilding from scratch, but nothing seems to work. It's as stubborn as a wild stallion!

I'm running out of solutions and I'm starting to loose my mind

7 Replies

Is any report regarding this specific bug purposely gets ignored or what?
I never had this problem so the help I can provide is very limited. are you receiving this error just by doing next build && next start?
Yes, after running next build and having it saying Done, it pops that error when I use next start
then it exits with error code 1 or so
hey @Rafael Almeida, i fixed this issue
i have no clue what i did to fix it but looks like the build process was never completed even when it said so
ik for sure i tweaked my next cofig file