Next.js Discord

Discord Forum

Build error on vercel only

Unanswered
4:44 posted this in #help-forum
Open in Discord
I get this error while building on vercel

> Build error occurred
Error: ENOENT: no such file or directory, open '/vercel/path0/.next/next-server.js.nft.json'
    at ignore-listed frames {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/vercel/path0/.next/next-server.js.nft.json'
}


meanwhile i can confirm this file exist while building on my local environment.

1 Reply

Oh ok