vercel icon indicating copy to clipboard operation
vercel copied to clipboard

Route Manifest Definition

Open tiarebalbi opened this issue 6 years ago • 19 comments

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?

tiarebalbi avatar Feb 09 '20 22:02 tiarebalbi

Hello, can you tell us how did you solve it?

guilherme-vp avatar Feb 21 '20 19:02 guilherme-vp

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 .

tiarebalbi avatar Feb 21 '20 21:02 tiarebalbi

Okay, thanks for the help!! Happy codding.

guilherme-vp avatar Feb 24 '20 01:02 guilherme-vp

Im having this issue and removing .now and re-installing dependencies doest solve it for me :(

reginpv avatar Apr 20 '20 23:04 reginpv

Having this issue for a good while now and nothing I do solves it.

txbrown avatar Apr 22 '20 18:04 txbrown

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..

willTastyMakers avatar Apr 30 '20 20:04 willTastyMakers

same error when i deploy next.js project with storybook site in same repo.

it take my storybook as a next.js project

thomaszdxsn avatar May 13 '20 14:05 thomaszdxsn

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 image

this assumes you have scripts in your package.json for:

  • "build": "next build"
  • "export": "next export"

hope this helps!

rahrang avatar May 14 '20 05:05 rahrang

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.

image

Screenshot 2020-05-28 at 8 40 26 PM

vishwasnavadak avatar May 28 '20 15:05 vishwasnavadak

@vishwasnavadak vercel.json Screenshot 2020-06-04 at 7 08 38 PM Screenshot 2020-06-04 at 7 09 00 PM

srib1997 avatar Jun 04 '20 11:06 srib1997

Hey @srib1997 thanks for the answer. I'm not sure why though.

Is this a bug or this is how it should be done?

vishwasnavadak avatar Jun 04 '20 11:06 vishwasnavadak

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 builds existing 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.

SpainTrain avatar Aug 05 '20 01:08 SpainTrain

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.

PascalPixel avatar Aug 05 '20 21:08 PascalPixel

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 🥂

SpainTrain avatar Aug 07 '20 15:08 SpainTrain

This has been fixed in PR #5009, thanks!

styfle avatar Aug 11 '20 14:08 styfle

do we have to do anything like run upgrade to resolve this? just ran into it randomly upon deploying..

jamesryan-dev avatar Aug 14 '20 22:08 jamesryan-dev

@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!

styfle avatar Aug 17 '20 14:08 styfle

FYI I just experienced this issue when attempting to set up using the Blitz.js template.

emgoto avatar Feb 20 '21 18:02 emgoto

@PascalPixel i fixed the issue when i set Framework to "Other" thanks @styfle

✅ this works guys: image

castra-neon avatar Jul 19 '22 10:07 castra-neon