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.

Strange errors on generation

See original GitHub issue
Users/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 and type 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AndrewLeedhamcommented, Jul 22, 2019

@whaatt --tsconfig can now be specified with a path to your projects tsconfig.json file as of v0.51.0, this should fix your issue.

@domoritz can this issue be closed out?

0reactions
domoritzcommented, Oct 1, 2018

Sweet, thanks!

Read more comments on GitHub >

github_iconTop 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 >

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