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

8 messages ยท Page 1 of 1 (latest)

stark plover
#

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

indigo lichenBOT
#

๐Ÿ”Ž This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

      ๐Ÿ•ต๏ธ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in <id:customize>

      โœ… You can mark a message as the answer for your post with `Right click -> Apps -> Mark Solution`
      (if you don't see the option, try refreshing Discord with Ctrl + R)
stark plover
#

Is any report regarding this specific bug purposely gets ignored or what?

lofty cloak
#

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?

stark plover
#

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

stark plover
#

hey @lofty cloak, 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