graphql-nexus / nexus-plugin-prisma

Deprecated
MIT License
828 stars 118 forks source link

Failing to build, import * as Prisma from "../../.prisma/client/index" is being imported/generated twice #850

Open rushi444 opened 4 years ago

rushi444 commented 4 years ago

Screenshot

Screenshot (10)

Description

  1. Finished tutorial and working locally as expected
  2. When I try to 'nexus build' fails with a few errors:
    • Cannot find module '.....prismaclient or its corresponding type declarations
    • Duplicate identifier 'Prisma' (this import is being generated twice)
  3. Able to find error in node_modules/@types/typegen-nexus/index.d.ts

Repro https://github.com/rushi444/nexus-tutorial

dalvarado98 commented 4 years ago

Having the same issues, following the examples from the Prisma page.

image

I´m using these versions:

    "@nexus/schema": "0.15.0",
    "@types/node-fetch": "2.5.7",
    "apollo-server": "2.18.1",
    "graphql": "15.3.0",
    "nexus-plugin-prisma": "0.19.0"