was anyone able to use Prisma + D1? My
was anyone able to use Prisma + D1? My app works locally but when I deploy it to Cloudflare i'm getting the error: fs.readdir is not implemented yet. Why would Prisma need access to the filesystem if it is configured to connect to D1? Its a real showstopper for me. I guess i will have to self-host the app if there is no solution.
3 Replies
yes, prisma+d1 is my favourite setup lately. just cloned one of my private repos so you can see a working example
https://github.com/WillSmithTE/trafficlights-public-clone
GitHub
GitHub - WillSmithTE/trafficlights-public-clone
Contribute to WillSmithTE/trafficlights-public-clone development by creating an account on GitHub.
You are life-saver! I'll be looking into it.
I wonder how you managed to fix this Error: No such module "build/server/assets/.prisma/client/default".
imported from "build/server/assets/server-build-CZht235z.js"
If anyone reading this... I wanted to post update. I decided to not using Prisma ORM. It is too complicated, especially with their minor version update new options etc., I spent my whole week to read their documents and tried with many different ways. The npm run dev works and npm run deploy fails. Luckily I found Drizzle and changing my code to Drizzle was smooth, and cool thing is that no more Prisma Client issue that I need to worry about for different architecture platforms it would run.