Prisma 7 generated client errors with “Must call super constructor” when bundled via Nx/Webpack #33571
Closed
michaelschung
started this conversation in
General
Replies: 1 comment
-
|
Update: I'm an idiot and I forgot to update |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I recently upgraded to Prisma 7 in an Nx/NestJS monorepo. All queries still work, but every DB call logs this (non-breaking) error:
Monorepo structure:
Webpack config for
backend:Prisma generator (noting that Prisma 7 requires a custom output path, as opposed to the old default
node_modules/.prisma.All DB types are generated under
libs/prisma-client/src/generated. My TypeScript path mapping points@monorepo/prisma-clienttolibs/prisma-client/src/index.ts.To the best of my understanding, the error in question has to do with Prisma’s generated client runtime being incompletely or improperly bundled. Specifically, it seems like the engine binaries or runtime files are either missing or being transformed by Webpack, causing class inheritance errors at runtime. But please let me know if I’m looking in the wrong place.
Any help is greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions