prisma-labs / graphql-framework-experiment

Code-First Type-Safe GraphQL Framework
https://nexusjs.org
MIT License
672 stars 66 forks source link

nexus-plugin-prisma fails to install on clean project #911

Open nimobeeren opened 4 years ago

nimobeeren commented 4 years ago

Screenshot

image

Description

nexus-plugin-prisma fails to install, even on a clean project. However, nexus-plugin-prisma@0.7.0 seems to work OK.

Repro

  1. yarn init
  2. yarn add nexus-plugin-prisma
  3. Observe error

Environment details

OS: Arch NodeJS: v14.2.0 Yarn: 1.22.4

nimobeeren commented 4 years ago

Update: adding the dependency @prisma/sdk (version 2.0.0-beta.5) before adding nexus-plugin-prisma seems to fix the issue. This might be something on Prisma's side.

arxpoetica commented 4 years ago

I can confirm I'm getting the same problem w/ yarn and node v 14. It doesn't happen w/ node v 12. Also doesn't happen with npm.