Anti
Anti
CDCloudflare Developers
Created by Anti on 10/27/2023 in #pages-help
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.
3 replies
CDCloudflare Developers
Created by Anti on 3/23/2023 in #pages-help
Is there any way to uso Node 18?
I have built a new Gatsby 5 site and it requires Node 18+ to run. However, reading the documentation I have found that CF only exposes Node up to version 17.x via the NODE_VERSION env var. Is there any way I can deploy my site using only CloudFlare? Thanks!
2 replies