Type instantiation is excessively deep and possibly infinite.ts (2589)

See original GitHub issue

Hi,

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:open
  • Created 4 years ago
  • Reactions:8
  • Comments:21

github_iconTop GitHub Comments

6reactions
palracommented, Oct 15, 2019

@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 TypeScript or TypeScript React is displayed the current TypeScript version. Click on it and select Use workspace version. Assuming you already installed TypeScript 3.5.x : yarn add typescript@3.5.x

4reactions
LinuCCcommented, Sep 14, 2019

Downgrading from typescript 3.6 to 3.5 works around the problem

Read more comments on GitHub >

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

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