Chinedu Oguejiofor
Chinedu Oguejiofor

Reputation: 21

Generic type 'GraphQLObjectType<TSource, TContext>' requires between 0 and 2 type arguments

I created a basic Graphql Typescript App using Apollo server and I am using Prisma and I am currently trying to build so that I can deploy and I keep getting 7 error each time I run build

Error on the terminal

Node Modules file

The error

here is the GitHub https://github.com/chineduknight/EasyWash_backend

Upvotes: 0

Views: 1453

Answers (1)

georgekrax
georgekrax

Reputation: 1189

I had the same problem. Luckily I found this issue and really helped me. I removed [email protected] & installed some "older" version of GraphQL, the [email protected] and it all worked well.

Note: This happened to me with TypeScript (TS) & by compiling with tsc.

I hope this helps you and solves your issue too.

Upvotes: 1

Related Questions