Skip to content

Upgrade to Prisma 2 Beta 3 #766

@ianwensink

Description

@ianwensink

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

  1. npm install @prisma/cli@2.0.0-beta.3
  2. This will result in node_modules/@prisma/cli (at beta3) and node_modules/nexus-plugin-prisma/node_modules/@prisma/cli (at beta1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin/prismatype/featAdd a new capability or enhance an existing one

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions