-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
plugin/prismatype/featAdd a new capability or enhance an existing oneAdd a new capability or enhance an existing one
Description
Description
The nexus-plugin-prisma module at 0.7.0 has a direct dependency on the @prisma modules, fixed at beta1. At the time of writing we are already at beta3, which means people using Nexus are missing out on all of that.
When you require beta3 of either the cli or the client, NPM will install both versions, causing issues when generating the Prisma client. Nexus will do it in the local (beta1) folder, while the rest of your app is using the shared node_modules (beta3).
Imho, solving this could be through either upgrading to the latest beta, but more future proof would be to have the prisma modules as peer dependencies, with the risk of upgrading for the user.
Repro
npm install @prisma/cli@2.0.0-beta.3- This will result in
node_modules/@prisma/cli(atbeta3) andnode_modules/nexus-plugin-prisma/node_modules/@prisma/cli(atbeta1)
chrisjaimes and ryanking1809
Metadata
Metadata
Assignees
Labels
plugin/prismatype/featAdd a new capability or enhance an existing oneAdd a new capability or enhance an existing one