prisma-multi-tenant icon indicating copy to clipboard operation
prisma-multi-tenant copied to clipboard

Comptability issues with latest prisma 2.12.0

Open asaadawey opened this issue 4 years ago • 7 comments

Updating prisma to v2.12 and nexus leads me to this error

Error: Unknown property debug provided to PrismaClient constructor.
Read more at https://pris.ly/d/client-constructor
    at validatePrismaClientOptions (/home/ahmed/Desktop/CarRental-Backend/node_modules/.prisma-multi-tenant/management/runtime/index.js:78546:13)
    at new NewPrismaClient (/home/ahmed/Desktop/CarRental-Backend/node_modules/.prisma-multi-tenant/management/runtime/index.js:78611:9)
    at Management.<anonymous> (/home/ahmed/Desktop/CarRental-Backend/node_modules/@prisma-multi-tenant/shared/build/management.js:39:27)
    at Generator.next (<anonymous>)
    at fulfilled (/home/ahmed/Desktop/CarRental-Backend/node_modules/@prisma-multi-tenant/shared/build/management.js:5:58)
    at process._tickCallback (internal/process/next_tick.js:68:7)

asaadawey avatar Nov 25 '20 16:11 asaadawey

Hi @asaadawey . I have the same error. Did you manage to find a solution?

mvhysko avatar Dec 03 '20 14:12 mvhysko

@mvhysko Yes I have edited the node_modules folder temporarily I removed the method that verifies prisma client constructor

asaadawey avatar Dec 03 '20 16:12 asaadawey

Any chance this can be merged in and released?

jimsimon avatar Feb 16 '21 03:02 jimsimon

Any chance this can be merged in and released?

Intelligix avatar Mar 22 '21 19:03 Intelligix

@jimsimon @Intelligix Sorry guys. This PR is not valid. Current version of this lib should be adapted to the new Prisma version. I do not have a time to do it.

mvhysko avatar Mar 22 '21 19:03 mvhysko

Is that just mean changing the version in package.json to be using the new Prisma right? @mvhysko I can do that and make the pull request

totaland avatar Apr 26 '21 23:04 totaland

@mvhysko https://github.com/Errorname/prisma-multi-tenant/pull/79 Could you help with fixing the test for this PR please champ?

totaland avatar Apr 27 '21 03:04 totaland