Hi everyone. I need some help. I am using Prisma w...
# orm-help
s
Hi everyone. I need some help. I am using Prisma with tRPC in a NextJS project. There is a build error on Vercel complaining about implicit any during the build phase of the pipeline. I have no errors when I build the project locally. Also the types are correctly inferred in development. I don't want to use ignoreBuildErrors: true in my next config, obviously :) Did anyone encounter the same issue before? Thanks for your help
1
y
My guess is that when things are stripped in a production build, you lose your backend types (like prisma). but thats a hard guess, I have no clue
👍 1
s
adding "postinstall": "npx prisma generate" to the package.json does the trick
🙌 1