vercel Prisma Client could not locate the Query Engine
Hey,
I'm currently trying to deploy the development version of my website on vercel and I have started getting this error after updating to version
I have read the guide linked in the error, but I am a little confused about some of the implementation for some of the "fixes".
I have already implemented a
This is not a build error, this is a runtime error and the prisma client is generated at build time using a npm script:
I'm currently trying to deploy the development version of my website on vercel and I have started getting this error after updating to version
6.4.1 (previously was on 5.4).I have read the guide linked in the error, but I am a little confused about some of the implementation for some of the "fixes".
I have already implemented a
globalForPrisma variable, only difference is I am using prisma in a monorepo, so I have a package called "database", which allows me to reuse my schema across all apps.This is not a build error, this is a runtime error and the prisma client is generated at build time using a npm script:
"build": "pnpm run db:generate & tsup" as suggested in the guide above (at build time it is having no issues finding prisma schema)