Graphql-yoga: Can't compile typescript - "Cannot find name 'Exclude"

Created on 8 May 2018  路  7Comments  路  Source: dotansimha/graphql-yoga

I get the following error message when I run tsc:

node_modules/graphql-yoga/dist/src/types.d.ts(12,42): error TS2304: Cannot find name 'Exclude'.

I'm using version 1.13.1 of the library. Downgrading to 1.6.1 fixes the issue.

Most helpful comment

I was having this issue when I had [email protected]. Upgrading to [email protected] fixed the issue.

All 7 comments

@artemzakharov can you provide a minimal example repo to reproduce the problem?

https://github.com/artemzakharov/bugtest.git

It's just a boilerplate project created with graphql create, using the typescript-advanced template.

I just want to confirm that I too have the same issue, just came across it when attempting to deploy.

I was having this issue when I had [email protected]. Upgrading to [email protected] fixed the issue.

@hyrecar To confirm upgrading typescript fixed this issue for me also.

+1 for confirmation of both issue and upgrade as solution

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

checkmatez picture checkmatez  路  5Comments

marktani picture marktani  路  5Comments

woss picture woss  路  5Comments

chakrihacker picture chakrihacker  路  5Comments

kv-pawar picture kv-pawar  路  3Comments