pmt init leads to error
See original GitHub issueHey there!
I’m trying to set up pmt so I am able to access two databases in the same app through prisma.
After installing prisma-multi-tenant, running pmt init
and giving it the management db url, it hits an Cannot read property 'plural' of undefined
at the Creating example script… step.
I am also getting this warning when going through init Warning: This version of prisma-multi-tenant is compatible with @prisma/cli@2.4.1, but you have @prisma/cli@2.10.1 installed. This may break in unexpected ways.
My local and globally installed @prisma/cli are at v2.4.1, so I’m not sure why this shows up even. Not sure if this could be related to the init error?
I’ve reinstalled all packages multiple times and I’m really at a loss at what to do here.
// global
"prisma-multi-tenant@2.3.1"
// deps
"@prisma-multi-tenant/client": "^2.3.1",
"@prisma/client": "^2.9.0",
// dev dep
"@prisma/cli": "2.4.1",
Any nudge in the right direction is greatly appreciated.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
We have a
multi-tenancy-example.js
file! Appreciate the help 😃It should now be fixed with pmt@2.4.2