Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using with Bun #10

Open
bostjanpisler opened this issue Jan 17, 2024 · 2 comments
Open

Error when using with Bun #10

bostjanpisler opened this issue Jan 17, 2024 · 2 comments

Comments

@bostjanpisler
Copy link

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
Copy link
Owner

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
Copy link

pnpm the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants