Typescript Error: Type instantiation is excessively deep and possibly infinite. (v1.4.4)
krityan opened this issue · 0 comments
krityan commented
Description:
I am using the following pattern to register components:
Ractive.components["component-name"] = Ractive.extend({ ... });
Typescript refuses to compile this with the error: TS2589: Type instantiation is excessively deep and possibly infinite.
Using @ts-expect-error
is not a suitable workaround as this error crops up every time the component used this.
.
Using @ts-ingore instead has allowed compilation to proceed.
Versions affected:
Ractive: 1.4.3 & 1.4.4
Typescript: 5.1.3 - 5.5.3
I found issue #3425 which raises this issue for typescript versions up to 5.1.3 and ractive version 1.4.2, I then tested this with explcitly typescript version 5.1.3 and ractive 1.4.3 and the issue is still present.