Next.js Discord

Discord Forum

Error on deployment: Error: The file "/vercel/path0/.next/routes-manifest.json" couldn't be found. T

Unanswered
Chalcid wasp posted this in #help-forum
Open in Discord
Chalcid waspOP
Hi I am deploying a monotrepo. I currently have a shared library under root directory (building using rollup) and my nextjs app under nextApp. I configured build to run yarn workspace build which builds shared library then nextjs.

I am getting this error:

âš  /api/stream provided runtime 'experimental-edge'. It can be updated to 'edge' instead.
✓ Compiled successfully
Collecting page data...
âš  You are using an experimental edge runtime, the API might change.
Generating static pages (0/9)...

Generating static pages (2/9)

Generating static pages (4/9)

Generating static pages (6/9)

✓ Generating static pages (9/9)
Finalizing page optimization...

â”” â—‹ /logout 427 B 402 kB
+ First Load JS shared by all 343 kB
├ chunks/framework-5adc074a214fdacb.js 45.2 kB
├ chunks/main-26ef52212bbfd46e.js 39.4 kB
├ chunks/pages/_app-cd99505245fdf009.js 256 kB
├ chunks/webpack-5eec495221e704df.js 1.08 kB
â”” css/a26cc5ad879cb123.css 678 B
ℇ (Streaming) server-side renders with streaming (uses React 18 SSR streaming or Server Components)
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
â—‹ (Static) automatically rendered as static HTML (uses no initial props)
Done in 68.44s.
Error: The file "/vercel/path0/.next/routes-manifest.json" couldn't be found. This is often caused by a misconfiguration in your project.
Learn More: https://err.sh/vercel/vercel/now-next-routes-manifest

7 Replies

Chalcid waspOP
Any ideas?
As you can see the nextjs build succeeds, but I get the error after that. Could it be the build directory? I have not changed it all
I did set root directory as "."
Happy to buy coffee, send tips for the help 🙂
Chalcid waspOP
@Clown thanks for that, the fix turned out to be, I had explicitly sent the outputBuild to wherever my .next folder was