Grant3W
Prisma in deno
I had a simlar error to the issue you are having. Try deleteing the
prisma
directories from your node_modules
folder, running npm install
and trying again.
Also...
- Use --unstable-detect-cjs
when running your server.
- Use engineType = "library"
in your Prisma schema.
- Use previewFeatures = ["deno"]
in your Prisma schema.
- When importing your client, use import { type PrismaClient } from "{path-to-generated}/generated/client/index.d.ts";
20 replies