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
locally and im suddenly getting the same errors, a lot of stuff is suddenly undefined and im wondering where am I going wrong?
image.png
Was this page helpful?