New error: Type instantiation is excessively deep and possibly infinite.
See original GitHub issueThis one’s actually new in 3.8. There are some additional errors in 3.9 - I’ll post them below.
packages/core/src/stateUtils.ts:157:36 - error TS2589: Type instantiation is excessively deep and possibly infinite.
157 return getValueFromAdj(rootNode, getAdjList(config));
~~~~~~~~~~~~~~~~~~
packages/core/src/State.ts:181:12 - error TS2589: Type instantiation is excessively deep and possibly infinite.
181 return new State(config);
~~~~~~~~~~~~~~~~~
packages/core/src/interpreter.ts:208:5 - error TS2589: Type instantiation is excessively deep and possibly infinite.
208 this.parent = parent;
~~~~~~~~~~~~~~~~~~~~
packages/core/src/interpreter.ts:783:13 - error TS2345: Argument of type '{ type: string; data: any; }' is not assignable to parameter of type 'string | EventObject | Event<EventObject>[] | Event<EventObject>'.
Object literal may only specify known properties, and 'data' does not exist in type 'EventObject'.
783 data: err
~~~~~~~~~
To repro:
yarn
tsc -b -f tsconfig.monorepo.json
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
[Bug]: Type error: Type instantiation is excessively deep and ...
Typescript complains that resolving the return type takes too many steps: Type error: Type instantiation is excessively deep and possibly ...
Read more >Why am I getting "Type instantiation is excessively deep and ...
You'll notice in the Playground link that action has the error: "Type instantiation is excessively deep and possibly infinite".
Read more >TypeScript. Type instantiation is excessively deep ... - Ilya Zykin
Makes reading the code very difficult. The problem hides in StyledComponents file. We need to describe a type of a styled component like...
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 >HtmlEditor - The `Type instantiation is excessively deep and ...
HtmlEditor - The `Type instantiation is excessively deep and possibly infinite` error occurs when TypeScript and jQuery are used in an ASP.NET ...
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
Yes, it was fixed by #36696.
FYI @davidkpiano