Strange errors on generation
See original GitHub issueUsers/sanjay/Workspace/Repos/bridge-client/node_modules/types/node/index.d.ts(609,10): error TS2585: 'Symbol' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
Users/sanjay/Workspace/Repos/bridge-client/node_modules/@types/node/index.d.ts(815,38): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
Users/sanjay/Workspace/Repos/bridge-client/node_modules/@types/node/index.d.ts(2641,10): error TS2585: 'Symbol' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
Users/sanjay/Workspace/Repos/bridge-client/node_modules/@types/node/index.d.ts(6428,14): error TS2585: 'Symbol' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
Users/sanjay/Workspace/Repos/bridge-client/node_modules/@types/ws/index.d.ts(191,18): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
Users/sanjay/Workspace/Repos/bridge-client/node_modules/typescript/lib/lib.dom.d.ts(8546,11): error TS2300: Duplicate identifier 'Headers'.
Users/sanjay/Workspace/Repos/bridge-client/node_modules/typescript/lib/lib.dom.d.ts(8555,13): error TS2300: Duplicate identifier 'Headers'.
Users/sanjay/Workspace/Repos/bridge-client/src/generated/types.d.ts(3,6): error TS2300: Duplicate identifier 'Headers'.
I get these errors when trying to generate schema from a typings file. For reference:
- I have a type
Headers
defined in my typings file. - I use Symbols as type parameters (e.g.
type Id<T> = string
andtype UserId = Id<'User'>
). - I never use the type
Set
in my typings file. - My
tsconfig.json
uses ES2018.
Any ideas how to fix this? Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Strange error on file generation on EHS5
I have fix some small errors so far. However I am facing some strange error. At the beginning of my program I generate...
Read more >Gen X Is a Mess - The New York Times
There's a whole generation of Gen X movie stars, leading men who led by dragging behind, brooding and philosophizing, tortured and intense: the ......
Read more >Latest Support and Bug Reports topics - Generation Zero Forum
Topic Replies Views Activity
Guest player isn't getting XP 4 80 December 27, 2022
Apparel schematics bug 3 38 December 26, 2022
Ive lost everything (save...
Read more >List of glitches (Generation I) - Bulbapedia
1.1 0 ERROR glitch · 1.2 Cable Club escape · 1.3 Cycling Road access requirement bypassing · 1.4 Experience PC withdrawing glitch ·...
Read more >Strange error generation "HTTP Error 502.3 - Bad Gateway"
User-1223203422 posted. Hi everyone, I'm developing a site in ASP.NET core MVC with Visual Studio 2015 Update 3 and I happened for the...
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
@whaatt
--tsconfig
can now be specified with a path to your projectstsconfig.json
file as ofv0.51.0
, this should fix your issue.@domoritz can this issue be closed out?
Sweet, thanks!