We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97ea2f6 commit cfca402Copy full SHA for cfca402
packages/runtime/src/enhancements/utils.ts
@@ -62,7 +62,9 @@ function loadPrismaModule(prisma: any) {
62
if (prisma._engineConfig?.datamodelPath) {
63
const loadPath = path.dirname(prisma._engineConfig.datamodelPath);
64
try {
65
- return require(loadPath).Prisma;
+ const _prisma = require(loadPath).Prisma;
66
+ if (typeof _prisma !== 'undefined') return _prisma;
67
+ return require('@prisma/client/runtime');
68
} catch {
69
return require('@prisma/client/runtime');
70
}
0 commit comments