question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't compile typescript - "Cannot find name 'Exclude"

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

36reactions
hyrecarcommented, May 16, 2018

I was having this issue when I had typescript@2.7.2. Upgrading to typescript@2.8.3 fixed the issue.

10reactions
jhalvorsoncommented, May 13, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't compile typescript - "Cannot find name 'Exclude" #310
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 ...
Read more >
following lodash error on build 'Cannot find name 'Exclude''
The actual issue is, Exclude was added to typescript on version 2.8. You might have a version of @types/lodash that needs minimum typescript ......
Read more >
Documentation - Module Resolution - TypeScript
Module resolution is the process the compiler uses to figure out what an import refers to. Consider an import statement like import {...
Read more >
ts-node - npm
Load files , include and exclude from tsconfig.json on startup. This may avoid certain typechecking failures. See Missing types for details.
Read more >
TypeScript error TS2304 cannot find name require - Edureka
The error that I'm getting is the "TS2304: Cannot find name 'require' " when I attempt to transpile a simple TypeScript Node.js page....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found