For me, this worked after installing the prisma client.
pnpm add -D prisma@latest pnpm add @prisma/client@latest