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 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
Try npm run lint
Even if u have small error like empty interface or something like that it wont build
these are the only warnings i get
U need to fix them or disable rules (better fix)
but the errors i get when building are different
i will try this and update
same issue, linting is not a problem..
from the build ^
in code everything is fine and works
UPDATE: Same error, but now building locally works, only fails on vercel..
I think it would be better practice to solve all the warnings first, then double check the types
From the errors it seems something is wrong with the routers