Can't compile typescript - "Cannot find name 'Exclude"
See original GitHub issueI 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:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was having this issue when I had
typescript@2.7.2
. Upgrading totypescript@2.8.3
fixed the issue.I just want to confirm that I too have the same issue, just came across it when attempting to deploy.