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 5.6 with large number of documents fail typecheck #10191

Closed
brianhuang822 opened this issue Nov 8, 2024 · 1 comment
Closed

Typescript 5.6 with large number of documents fail typecheck #10191

brianhuang822 opened this issue Nov 8, 2024 · 1 comment

Comments

@brianhuang822
Copy link
Contributor

Which packages are impacted by your issue?

@graphql-codegen/gql-tag-operations

Describe the bug

AFter upgrading to typescript 5.6, the following occurs with a large number of Documents

gql.ts:16:7 - error TS7056: The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.

Your Example Website or App

Steps to Reproduce the Bug or Issue

Create a large enough repo, run it on 5.6 typescript. see error above

Expected behavior

It should work as before like typescript 5.5

Screenshots or Videos

No response

Platform

  • OS: linux
  • NodeJS: node 20
  • graphql version: 16.6.0
  • @graphql-codegen/gql-tag-operations version(s): 4.0.11

Codegen Config File

No response

Additional context

No response

@brianhuang822
Copy link
Contributor Author

Resolved by #10192

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