deploying to vercel - typeerrors

Locally - everything works great, no type errors and its all fine. Trying to deploy to vercel and I'm encountring some errors, it feels like prisma isnt generated the same as its generating locally as a lot of things are suddenly undefined - but in my code they have their proper type. Trying to run
npm run build
npm run build
locally and im suddenly getting the same errors, a lot of stuff is suddenly undefined and im wondering where am I going wrong?
10 Replies
l
l2y ago
Try npm run lint Even if u have small error like empty interface or something like that it wont build
Eylon
Eylon2y ago
these are the only warnings i get
l
l2y ago
U need to fix them or disable rules (better fix)
Eylon
Eylon2y ago
but the errors i get when building are different i will try this and update
Eylon
Eylon2y ago
same issue, linting is not a problem..
Eylon
Eylon2y ago
from the build ^
Eylon
Eylon2y ago
in code everything is fine and works
Eylon
Eylon2y ago
UPDATE: Same error, but now building locally works, only fails on vercel..
Abuzeid
Abuzeid2y ago
I think it would be better practice to solve all the warnings first, then double check the types
Sybatron
Sybatron2y ago
From the errors it seems something is wrong with the routers
Want results from more Discord servers?
Add your server