graphql-code-generator-community icon indicating copy to clipboard operation
graphql-code-generator-community copied to clipboard

@graphql-codegen/[email protected] incompatible with graphql-request v6.0.0+ when using graphql-request as the fetcher

Open udeyrishi opened this issue 2 years ago • 1 comments

Which packages are impacted by your issue?

@graphql-codegen/typescript-react-query

Describe the bug

This ticket is essentially the same as https://github.com/dotansimha/graphql-code-generator-community/issues/331, except it also applies to the package @graphql-codegen/[email protected] when used with graphql-request as the fetcher.

Your Example Website or App

n/a

Steps to Reproduce the Bug or Issue

  • Update graphql-request to 6.0.0
  • Generate typings

Expected behavior

Not to get any type errors.

Screenshots or Videos

No response

Platform

  • OS: macOS
  • NodeJS: 18.16.0
  • graphql version: 16.7.1
  • @graphql-codegen/cli: 4.0.0,
  • @graphql-codegen/near-operation-file-preset: 2.5.0,
  • @graphql-codegen/typescript: 4.0.1,
  • @graphql-codegen/typescript-operations: 4.0.1,
  • @graphql-codegen/typescript-react-query: ^4.1.0,

Codegen Config File

No response

Additional context

No response

udeyrishi avatar Jun 27 '23 13:06 udeyrishi

I have made a pull request to fix this. @saihaj Would you help comment/review on the PR?

davidchen-allio avatar Apr 12 '24 00:04 davidchen-allio