Build fails on vercel however succeds on local
See original GitHub issueRunning yarn build
locally works fine, however on vercel the build fails with error
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:
- Created 2 years ago
- Comments:10
Top 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 >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
Should be fixed now: https://github.com/contentlayerdev/contentlayer/releases/tag/v0.0.32
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