Trying to spin up a worker with Prisma Accelerate on cloudflare

I am getting error while trying to run wrangler dev locally.
I've defined the DATABASE_URL , DIRECT_URL in .env file and workers.toml (unsure about which one it actually takes)
I have also defined engineType in schema.prisma file to library. But still getting the below error.
Also ran the npx generate cmd with no-engine
Getting the following error.

[ERROR] service core:user:throbbing-star-ca17: Uncaught Error: PrismaClientValidationError: Invalid client engine type, please use library or binary
Was this page helpful?