Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript Error: Type instantiation is excessively deep and possibly infinite. (v1.4.4) #3435

Open
krityan opened this issue Jul 25, 2024 · 0 comments

Comments

@krityan
Copy link

krityan commented Jul 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant