You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Invalid enum value: length
at Object.get /dist/generated/backend/client/runtime/library.js:129:966)
at isArrayLike /node_modules/lodash/isArrayLike.js:30:42)
at keysIn /node_modules/lodash/keysIn.js:29:10)
at /node_modules/lodash/_createBaseFor.js:12:17
at baseMerge /node_modules/lodash/_baseMerge.js:24:3)
at baseMergeDeep /node_modules/lodash/_baseMergeDeep.js:88:5)
at /node_modules/lodash/_baseMerge.js:27:7
at /node_modules/lodash/_createBaseFor.js:17:11
at baseMerge /node_modules/lodash/_baseMerge.js:24:3)
at baseMergeDeep /node_modules/lodash/_baseMergeDeep.js:88:5)
at /node_modules/lodash/_baseMerge.js:27:7
at /node_modules/lodash/_createBaseFor.js:17:11
at baseMerge /node_modules/lodash/_baseMerge.js:24:3)
at baseMergeDeep /node_modules/lodash/_baseMergeDeep.js:88:5)
at /node_modules/lodash/_baseMerge.js:27:7
at /node_modules/lodash/_createBaseFor.js:17:11
at baseMerge /node_modules/lodash/_baseMerge.js:24:3)
at baseMergeDeep /node_modules/lodash/_baseMergeDeep.js:88:5)
at /node_modules/lodash/_baseMerge.js:27:7
at /node_modules/lodash/_createBaseFor.js:17:11
at baseMerge /node_modules/lodash/_baseMerge.js:24:3)
at baseMergeDeep /node_modules/lodash/_baseMergeDeep.js:88:5)
at /node_modules/lodash/_baseMerge.js:27:7
at /node_modules/lodash/_createBaseFor.js:17:11
at baseMerge /node_modules/lodash/_baseMerge.js:24:3)
at baseMergeDeep /node_modules/lodash/_baseMergeDeep.js:88:5)
at /node_modules/lodash/_baseMerge.js:27:7
at /node_modules/lodash/_createBaseFor.js:17:11
at baseMerge /node_modules/lodash/_baseMerge.js:24:3)
at /node_modules/lodash/merge.js:36:3
at /node_modules/lodash/_createAssigner.js:30:9
at apply /node_modules/lodash/_apply.js:15:25)
at /node_modules/lodash/_overRest.js:32:12
at new AdminJS (file:/ /node_modules/adminjs/lib/adminjs.js:72:20)
I think some miscellaneous things in the Prisma module is not properly handled by the lodash merge.
What I found to workaround is not trying to do like README instructed:
// Not working{resource: {model: getModelByName('Profile',PrismaModule),client: prisma,clientModule: PrismaModule,},}
I think clientModule should not include everything Prisma gives. I can write a PR to rewrite from clientModule to customDmmf. What do maintainers think?
The text was updated successfully, but these errors were encountered:
I tried to use
clientModule
(Custom Prisma Client) but if so, errors occured in this line:https://github.com/SoftwareBrothers/adminjs/blob/8b7c19e/src/adminjs.ts#L114
I think some miscellaneous things in the Prisma module is not properly handled by the lodash merge.
What I found to workaround is not trying to do like README instructed:
but this:
I think
clientModule
should not include everything Prisma gives. I can write a PR to rewrite fromclientModule
tocustomDmmf
. What do maintainers think?The text was updated successfully, but these errors were encountered: