olivierwilkinson / prisma-extension-soft-delete

Prisma extension for adding soft delete to Prisma models, even when using nested queries
Apache License 2.0
97 stars 14 forks source link

Error when using with Bun #10

Open bostjanpisler opened 8 months ago

bostjanpisler commented 8 months ago

I get this error when adding the extension to Prisma using Bun.

Running bunx prisma generate doesn't resolve the issue.

Not sure if the extension supports Bun?

node_modules/prisma-extension-soft-delete/dist/lib/createSoftDeleteExtension.js:5:7
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | exports.findOppositeRelation = exports.relationsByModel = void 0;
4 | const client_1 = require("@prisma/client");
5 | if (!client_1.Prisma.dmmf) {
6 |     throw new Error("Prisma DMMF not found, please generate Prisma client using `npx prisma generate`");
              ^
error: Prisma DMMF not found, please generate Prisma client using `npx prisma generate`
olivierwilkinson commented 7 months ago

Hi there,

I haven't checked Bun support, but when I have time I will certainly try to get this working! I want to get stuck in with Bun anyways so this is a good way to do that 😄

Thanks for raising the issue!

IlliaHreben commented 2 weeks ago

pnpm the same