Error "Builder returned invalid routes: should be string" when building on Vercel
See original GitHub issueBuild works fine, but when adding nuxt-security
getting a build error.
Locally it works fine.
nuxt-security: 0.8.0 nuxt: 3.0.0
When building inside Vercel
Getting error:
Error: Builder returned invalid routes: should be string
Thanks for any idea of what I may be doing wrong.
Issue Analytics
- State:
- Created 10 months ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Builder returned invalid routes: should NOT have more than ...
I'm using next.js; I got this error after I setup a large 30k items rewrite rule in next.config.js. Building ( npm run build...
Read more >Errors – Vercel Docs
A list of errors provided by Vercel CLI or the REST API, with details on how they occur and how to resolve them....
Read more >Deploying NextJS to Vercel failed - Stack Overflow
ModuleNotFoundError: Module not found: Error: Can't resolve ... 'next/router'; declare module 'next/app' { type AppProps<P = Record<string, ...
Read more >Keep Software Engineering Soft | Kevin Wang's Blog
For example, the S3 object for /wiki/cloud/aws/s3 will be an .html file, ... Error: Builder returned invalid routes: ["Route at index 25 has...
Read more >Live Preview with Next.js and Sanity.io: A Complete Guide
Gotcha · Don't commit your API tokens to your Git repository. · You'll need to add these API token environment variables to wherever...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I guess it works. If not, make sure to reopen the issue
Build locally with
Vercel CLI/Preset Vercel
and all looking good. Start to think that something else is the issue, probably nothing wrong with this module.Will setup a clean
Nuxt3
install and run it onVercel
.Thanks for now, will share the findings here.
Cheers.