Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error "Builder returned invalid routes: should be string" when building on Vercel

See original GitHub issue

Build 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:closed
  • Created 10 months ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

Baroshemcommented, Dec 13, 2022

I guess it works. If not, make sure to reopen the issue

re2005commented, Nov 29, 2022

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

Thanks for now, will share the findings here.


Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found