Next.js Discord

Discord Forum

Stuck on build error: no such file or directory, lstat '/vercel/path0/.next/export-detail.json'

Unanswered
Cinnamon posted this in #help-forum
Open in Discord
CinnamonOP
All my builds are failing for a project, can't find anything online about it.
Other projects are building fine so I know its something to do with my code, but I don't have any idea on where to start debugging how vercel build would fail to create this file.

Local prod builds work just fine.

I've tried starting a new vercel project from the same repo and am able to repro the same error.

vercel@latest 14.2.3
tried with node 18 & 20 local and setting node v in vercel console

there's no stack trace or anything about this when googling around.

pretty stuck :/

any insights into how to go about debugging this would be greatly appreciated 🙏

1 Reply

CinnamonOP
Entire build log (seems all good and then at the end, crashes)