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

Build fails on vercel however succeds on local

See original GitHub issue

Running yarn build locally works fine, however on vercel the build fails with error

image

I feel this might be similar to the issue mentioned here #41 as it seems the build fails when type checking is done on vercel during compilation step.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

2reactions
schicklingcommented, Nov 15, 2021
2reactions
schicklingcommented, Nov 15, 2021

I’ve released a new dev version (hopefully) containing a fix. Please get it a try so I cut a stable release for everyone. 🤞

yarn add contentlayer@dev next-contentlayer@dev

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot a Build – Vercel Docs
Sometimes, your Deployment Build can hit platform limits so that the build will be cancelled and throw a corresponding error that will be...
Read more >
Next project builds fine on my local machine, but fails on Vercel
This is an error that is happening ONLY on Vercel and on local it builds with no issues.
Read more >
Next.js build error on Vercel but not in Local - Stack Overflow
The issue occurs due to case-insensitive file systems allowing the local builds to pass (as the path is resolved) but the Vercel build...
Read more >
build success locally but fail when deploying : r/nextjs - Reddit
Fail to deploy to netlify and vercel while success locally. The log say it because of the unsupported file type, I already declare...
Read more >
How to fix build failures with `create-react-app` in production
Look into your build logs, and find any warnings printed by your build command. Fixing those warnings will make your build succeed again...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found