Next.js Discord

Discord Forum

Error: ENOENT: no such file or directory, open '/vercel/path0/.next/server/pages/404.html'

Unanswered
Asian black bear posted this in #help-forum
Open in Discord
Asian black bearOP
Traced Next.js server files in: 838.529ms
Created all serverless functions in: 2.092s
Collected static files (public/, static/, .next/static): 27.139ms
Error: ENOENT: no such file or directory, open '/vercel/path0/.next/server/pages/404.html'


Does anyone got this issue before ?
Vercel deployment nextJS

4 Replies

Masai Lion
I'm facing the same issue
Only hack resolution I found was to remove usage of "notFound" in getStaticProps
Unfortunately it's only feasible for one of my nextjs instances to do this approach