Route Manifest Definition
Hi,
Having an issue with one of my repositories, github.com/tiarebalbi/tiarebalbi-website which is using create-react-app but once I try to deploy I'm seeing the following error:
Error: A routes-manifest.json couldn't be found. This could be due to a failure during the build
--
10:38:27 PM | at Object.getRoutesManifest (/zeit/e0f2cd85419bbae1/.build-utils/.builder/node_modules/@now/next/dist/index.js:6057:15)
10:38:27 PM | at async Object.module.exports.178.exports.build (/zeit/e0f2cd85419bbae1/.build-utils/.builder/node_modules/@now/next/dist/index.js:3823:28)
10:38:27 PM | at async buildStep (/var/task/sandbox-worker.js:20292:20)
10:38:27 PM | at async mainSub (/var/task/sandbox-worker.js:20047:9)
10:38:27 PM | at async main (/var/task/sandbox-worker.js:19975:5)
Where can I find the details about this file?
Hello, can you tell us how did you solve it?
Hi,
Yes! Had to remove the .now settings, node dependencies and install all over again.
After that the error message didn’t show again.
On Fri, Feb 21, 2020 at 14:43 Xubi [email protected] wrote:
Hello, can you tell us how did you solve it?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/zeit/now/issues/3774?email_source=notifications&email_token=AAAZH66YYNN54WUYQOO2CBLREAVFLA5CNFSM4KSE5OK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMT3RRQ#issuecomment-589805766, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAZH6ZEU6L3LIXT4KQBCOLREAVFLANCNFSM4KSE5OKQ .
Okay, thanks for the help!! Happy codding.
Im having this issue and removing .now and re-installing dependencies doest solve it for me :(
Having this issue for a good while now and nothing I do solves it.
I am having this issue as well and I do not have a .now directory. I have spent the past 2 days trying to deploy with vercel. It used to be fairly straight forward now I can't make heads or tells of why I am getting this
Error: A routes-manifest.json couldn't be found. This could be due to a failure during the build
13:04:35.457
at Object.getRoutesManifest (/zeit/1bc6bc026129a8fb/.build-utils/.builder/node_modules/@now/next/dist/index.js:6113:15)
13:04:35.457
at async Object.module.exports.178.exports.build (/zeit/1bc6bc026129a8fb/.build-utils/.builder/node_modules/@now/next/dist/index.js:3764:28)
13:04:35.457
at async buildStep (/var/task/sandbox-worker.js:20373:20)
13:04:35.457
at async mainSub (/var/task/sandbox-worker.js:20118:9)
13:04:35.457
at async main (/var/task/sandbox-worker.js:20023:5)
Reviewing similar issues on github...
- don't have .now directory
- do have a public directory
- searched your docs for Routes Manifest Definition
This is very frustrating..
same error when i deploy next.js project with storybook site in same repo.
it take my storybook as a next.js project
hey yall -- if you're trying to deploy a next.js static site to vercel and you're getting the "missing routes-manifest.json" error message, check out the docs here: https://github.com/zeit/now/blob/master/errors/now-next-routes-manifest.md
essentially you just need to make sure your project settings are as such

this assumes you have scripts in your package.json for:
- "build": "next build"
- "export": "next export"
hope this helps!
I got the same error today while deploying Storybook using the custom build command. Even though the build command is not of Next and Framework is explicitly selected as other, it seems to through this error.


@vishwasnavadak
vercel.json

Hey @srib1997 thanks for the answer. I'm not sure why though.
Is this a bug or this is how it should be done?
Is this a bug or this is how it should be done?
It is a bug.
Project linking has been the idiomatic approach to Vercel project config since v17. Using the suggested approach results in:
Due to
buildsexisting in your configuration file, the Build and Development Settings defined in your Project Settings will not apply. Learn More: https://vercel.link/unused-build-settings
I do not think it is controversial to say that a basic static site deployment ought to work with project linking. It may require a new GH issue to get eyes on this problem, and I am also discussing with support.
Same thing, 'Custom framework' set, running yarn build-storybook and setting output folder to static-storybook, keeps trying to find a next routes manifest because next is am (unused) dependency.
Update: I have confirmed with Vercel support that this is a bug. Support has forwarded it to the engineering team. Their support has been awesome in my experience :+1:. Here is to hoping it is a quick fix 🥂
This has been fixed in PR #5009, thanks!
do we have to do anything like run upgrade to resolve this? just ran into it randomly upon deploying..
@jimmynames No, nothing you need to do besides deploy. The fix is available for all new deployments.
If you are still seeing this error, please submit a Support Request so we can look at your deployment and see what the problem is, thanks!
FYI I just experienced this issue when attempting to set up using the Blitz.js template.
@PascalPixel i fixed the issue when i set Framework to "Other" thanks @styfle
✅ this works guys:
