Prisma not found when upgrading to builds v2

I tried it in the past, but got an error and chose v2 instead. Yesterday I tried v2 again for the caching, but with no luck. My build command prisma generate && next build worked great on v1. But on V2 it sais that Prisma is not found. I have tried all sorts of different suggested combinations, but with no luck. These, for instance:
yarn dlx prisma generate && ...
yarn add @prisma/client && yarn dlx prisma generate ...
npx prisma generate && ...
yarn dlx prisma generate && ...
yarn add @prisma/client && yarn dlx prisma generate ...
npx prisma generate && ...
when I run it with with dpx prisma generate, I get Could not resolve @prisma/client despite the installation that we just tried. Has anyone experienced this before? I can run this build locally with yarn3 and yarn4 with no trouble.
1 Reply
Anti
Anti11mo ago
For anyone wondering, I ditched yarn in favor of bun for this one. It worked with this build command:
bun run prisma generate && ...
bun run prisma generate && ...
If you are curious about the timings for building a next app (around 250 static pages), here are the results: - Builds v1 + yarn: - Dependencies: 49s - SSG: 58s - Total: 2m5s - Builds v2 + bun: - Dependencies: 12s - SSG: 58s - Total: 1m19s Still not using the cache though. This is the first working result from scratch. Hope to see even better speeds for following builds yes
Want results from more Discord servers?
Add your server