Prisma (v5.12 & v5.14 & v5.15) client has errors accessing cockroachdb
when using with cloudflare workers and the new driverAdapter
preview feature
#24475
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
domain/client
Issue in the "Client" domain: Prisma Client, Prisma Studio etc.
kind/bug
A reported bug.
topic: cockroachdb
topic: driverAdapters
topic: prisma generate
CLI: prisma generate
Bug description
Bug description
Prisma (v5.12 & v5.14 & v5.15 client has errors accessing cockroachdb when using with cloudflare workers and the new { previewFeatures = ["driverAdapters"] }. All queries using the PrismaClient() will fail with error:
NOTE: the root cause of the bug is that there are 2 files: [query_engine_bg.js] & [query_engine_bg.wasm] that are missing from the directory [\node_modules.prisma\client]
(if you copy the 2 missing files into this directory, then the PrismaClient() will work, and be able to query the database)
How to reproduce
You can use your own example:
https://github.com/prisma/ecosystem-tests/tree/dev/driver-adapters-wasm/pg-cf-basic
change the provider to "cockroachdb", and the 2 missing files will not get produced (in the .prisma/client directory)
Expected behavior
the 2 file below should appear in the direcotry .[..\pg-cf-basic\node_modules.prisma\client]
query_engine_bg.js
query_engine_bg.wasm
Prisma information
// Add your schema.prisma
// Add your code using Prisma Client
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: