How to resolve Error: The file "/vercel/path0/.next/routes-manifest.json" couldn't be found. #47517
Replies: 17 comments 27 replies
-
One thing that seems weird, it says this in Vercel builds:
But when I do |
Beta Was this translation helpful? Give feedback.
-
Same issue here, turborepo environment, the error seems to appear only when the preview -> production migration is happening. |
Beta Was this translation helpful? Give feedback.
-
In my case I got that error when trying to deploy a next.js project (called 'nextjs') inside of monorepo but didn't change the root directory to 'apps/nextjs'. So my problem was not about the commands overriding (build/install or whatever). |
Beta Was this translation helpful? Give feedback.
-
In my case i just removed |
Beta Was this translation helpful? Give feedback.
-
Hello there , mine is not working... i have done every step that you have suggested but still not working , the web is built using pnpm turbo nextjs |
Beta Was this translation helpful? Give feedback.
-
I have the same issue, nextjs project with yarn. But it can be solve by clicking |
Beta Was this translation helpful? Give feedback.
-
If we specify |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I removed |
Beta Was this translation helpful? Give feedback.
-
same issue here :/ no answer from vercel support of course. this is severely impacting our engineering team's productivity |
Beta Was this translation helpful? Give feedback.
-
I encountered the same issue, I am using a monorepo structure with Turborepo. What worked for me is overriding my deployment/build commands on Vercel to these: apps/** |
Beta Was this translation helpful? Give feedback.
-
I had the same problem. It looks like it went away when I made sure all The ESLint plugin |
Beta Was this translation helpful? Give feedback.
-
Have any of these changes actually fixed the problem for good? It seems like the issue will be resolved for us for a week or two and then show up again. |
Beta Was this translation helpful? Give feedback.
-
Sometimes it helps if you add
|
Beta Was this translation helpful? Give feedback.
-
I ran into "vercel/path0: file not found" errors in a monorepo and fixed it by turning off the build cache. Set env var VERCEL_FORCE_NO_BUILD_CACHE=1 in project settings |
Beta Was this translation helpful? Give feedback.
-
Summary
I have been getting the following on Vercel builds/deployments continuously after somewhat halfway potentially resolving this other Vercel error:
When I visit https://err.sh/vercel/vercel/now-next-routes-manifest, it talks about making sure your project settings are the default in Next.js on Vercel, which mine are (I double and triple checked).
Locally, I am able to run
npm run lint
with no errors, andnpm run build
works fine. I can develop my app fine as well withnpm run dev
.I was facing that other hanging error before, but after removing most of the calls to loading JSON modules in the
getServerSideProps
, now I am getting this above error... Any ideas how I can fix this or what else might be happening?Thank you.
P.S. Why am I not getting the same build response locally on my MacOS M2? Do I need to resort to simulating this somehow locally as a linux machine? If so, how can I do that do you think?
Beta Was this translation helpful? Give feedback.
All reactions