Next.js Discord

Discord Forum

Vercel build error not reproducible locally

Unanswered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Avatar
Northeast Congo LionOP
Hello, as the title indicates, im having an issue when deploying to vercel. For some strange reason the typescript build fails on verel, but works perfectly locally. Even vscode doesn't show the errors. Im using turborepo.
Image
Image
Image

9 Replies

Avatar
Northeast Congo LionOP
This is driving me crazy
This are my dependencies
Image
Avatar
Northeast Congo LionOP
Even running tsc --noEmit works
For testing i cloned the repo, installed and runned build simulation what vercel does, and it does in fact work locally but not in vercel.
Here is how it looks on vscode (the line vercel build is complaining abt)
Image
Image
Avatar
Northeast Congo LionOP
I updated the build command to this
Image
Now I get even more issues that dont show up locally