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

Performance / Type instantiation is excessively deep and possibly infinite. #228

Open
heggemsnes opened this issue Oct 13, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@heggemsnes
Copy link
Contributor

Hi!

I'm an avid user of this package for all our projects. It really helps us level up our skills with regards to TypeScript.

However, we do have some issues, and I'm not sure how they can be resolved.

For complex sites and queries, we often encounter this Type instantiation is excessively deep and possibly infinite. error. This error is frustrating because it seems somewhat random where it shows up in the editor and whether or not it actually returns an error when compiling the TypeScript.

Furthermore, (and perhaps this is related) on larger projects, the editor slows down due to ESLint and the compilation process itself, with type-checking that can take more than 3 minutes.

I'm not sure if this is something that's easily solvable, or if we are just pushing TypeScript to its limit. Either way, I wanted to bring this up to start a discussion about possible solutions.

We are separately testing doing "manual groq + zod" and these problems does not show up.

@carbonrobot
Copy link
Contributor

Possibly related to microsoft/TypeScript#34933

@carbonrobot carbonrobot added the bug Something isn't working label Oct 30, 2023
@magicspon
Copy link

I'm also seeing this issue. It doesn't happen consistently. sometimes just reformatting the code fixes the issue.

tricky!

@aleczratiu
Copy link

Up.

@tim-vyg
Copy link

tim-vyg commented Feb 8, 2024

Same happening here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants