You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With TypeScript v5 project fail to compile with Type instantiation is excessively deep and possibly infinite.ts(2589).
Because the instantiationCount limit (5e6) is reached.
Increasing it by modifying TypeScript's source fixes it but intelissense becomes so slow it becomes impossible to work.
On MBP M1:
1679856587162212.mp4
🙂 Expected behavior
With TypeScript v4 it compiles and the devloppement experience is smooth:
Screen.Recording.2023-03-26.at.20.25.38.mov
Thanks to all the team, thanks for your great work!
Bug Report
🔎 Search Terms
🕗 Version & Regression Information
5.0.2(Also tested with5.1.0-dev.20230326)Please keep and fill in the line that best applies:
⏯ Playground Link
I created a reproduction repo with straight forward reproduction path:
https://github.com/garronej/typescript-v5-instantiationCount-bug-report
💻 Code
The problem is related to typescript 5 instantiating much more object than TS 4.
I know that the problem occurs when involving this framework that has complex type definitions.
🙁 Actual behavior
With TypeScript v5 project fail to compile with
Type instantiation is excessively deep and possibly infinite.ts(2589).Because the
instantiationCountlimit (5e6) is reached.Increasing it by modifying TypeScript's source fixes it but intelissense becomes so slow it becomes impossible to work.
On MBP M1:
1679856587162212.mp4
🙂 Expected behavior
With TypeScript v4 it compiles and the devloppement experience is smooth:
Screen.Recording.2023-03-26.at.20.25.38.mov
Thanks to all the team, thanks for your great work!