Type instantiation is excessively deep and possibly infinite.ts (2589)
See original GitHub issueHi,
When using NavBar, I got an error in VSCode:
Type instantiation is excessively deep and possibly infinite.ts(2589)
Apparently it’s linked to https://github.com/microsoft/TypeScript/issues/30188 where they recommend to use ts-toolbelt for complex types.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:8
- Comments:21
Top Results From Across the Web
“Type instantiation is excessively deep and possibly infinite ...
Type instantiation is excessively deep and possibly infinite.ts (2589); Mapped types; Generics; Conditional types.
Read more >how to ignore "Type instantiation is excessively deep and ...
Type instantiation is excessively deep and possibly infinite. ts (2589). It happens when TS decides that types become too complex to compute ...
Read more >TypeScript. Type instantiation is excessively deep ... - Ilya Zykin
Type instantiation is excessively deep and possibly infinite.ts (2589). Visual Studio Code IDE displays it to me for a component. The most unpleasant...
Read more >Type instantiation is excessively deep and possibly infinite ...
Getting `Type instantiation is excessively deep and possibly infinite` errors whenever I pass MongoClient as a parameter in my code after ...
Read more >TypeScript - i18next documentation
Type error - excessively deep and possibly infinite. If you face this issue whenever calling the t function: TS2589: Type instantiation is excessively...
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 Free
Top 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
@shakib609 That’s because VSCode uses its own bundled Typescript version by default. Open your workspace and a .ts file in it. On the bottom ribbon, next to
TypeScriptorTypeScript Reactis displayed the current TypeScript version. Click on it and selectUse workspace version. Assuming you already installed TypeScript 3.5.x :yarn add typescript@3.5.xDowngrading from typescript
3.6to3.5works around the problem