I am getting this error "ENOENT: no such file or directory, lstat '/vercel/path0/.next/export-detail.json'"

I am getting this error “ENOENT: no such file or directory, lstat ‘/vercel/path0/.next/export-detail.json’” when I am deploying my project to vercel. On other platform it is working fine.

First it was working fine but after some changes it is not working.

Environment: Production
Project Framework: Next JS
Build Settings:
  Framework Preset: Next JS 15
Node/Runtime Version:
Package Manager: npm

Hi, @hafizahmadamin! Welcome to the Vercel Community :smile:

This error has come up a few times for community members, I recommend checking these previous discussions out. Might be worth seeing if what worked for them works for you project:

These methods are not working.

Hi @hafizahmadamin ,
Do you mind sharing your project source code structure and the contents of vercel.json file?
Additionally, could you please confirm if you have overridden root directory under Project Settings > Root Directory?
It would also help you could provide the NextJS version that you are using for this build.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.