SoftwareBrothers / adminjs-prisma

MIT License
47 stars 27 forks source link

__baseDmmf with prisma 4.16.2! #40

Closed tqvthu-works closed 1 year ago

tqvthu-works commented 1 year ago

I am encountering compatibility issues with the following package versions in my project: "@adminjs/prisma": "^3.0.1", "adminjs": "^6.8.7", "prisma": "^4.16.2", The initial error I encountered is shown in this screenshot: image After researching the issue section, I found a potential solution in this GitHub issue: (https://github.com/SoftwareBrothers/adminjs-prisma/issues/35) However, implementing the solution led to another error, as shown in this screenshot: image

I would greatly appreciate any assistance or guidance in resolving this issue. Thank you in advance for your help!

Yureien commented 1 year ago

I have mentioned the fix for this error in my issue (#35) itself.

You need to modify the file node_modules/@adminjs/prisma/lib/Resource.js and change the line as mentioned in that issue. I am using patch package to do this automatically (google how to use it), but it can be done manually too.

tqvthu-works commented 1 year ago

Thank @Yureien

dziraf commented 1 year ago

Possibly fixed in 5.0.0: https://github.com/SoftwareBrothers/adminjs-prisma/releases/tag/v5.0.0