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

@graphql-codegen/cli @whatwg-node/fetch v0.6.3 doesn't support github schema #9007

Open
aliosmanisikk opened this issue Feb 17, 2023 · 2 comments
Assignees
Labels
kind/bug Bug :-(

Comments

@aliosmanisikk
Copy link

Which packages are impacted by your issue?

No response

Describe the bug

After we upgraded CLI version to 3.0.0 , our codegen no longer works. We are using the github integration as described here https://the-guild.dev/graphql/codegen/docs/config-reference/schema-field#github

When I investigated the issue, it is caused by the underlying library @whatwg-node/fetch upgrade from v0.6.2 to v0.6.3 .

When I add resolution to the older version, it works.

Your Example Website or App

https://codesandbox.io/p/sandbox/codegen-error-demo-mcyebm

Steps to Reproduce the Bug or Issue

  1. Go to example app
  2. Run yarn start
  3. Code generation throws error
  4. Add "@whatwg-node/fetch": "0.6.2" in package.json resolutions
  5. run yarn install
  6. run yarn start
  7. Code is generated

Expected behavior

Code is generated without resolution to the old version.

Screenshots or Videos

image

Platform

  • OS: any
  • NodeJS: 6.17.01
  • graphql version: 16.6.0
  • @graphql-codegen/* version(s): 3.0.0

Codegen Config File

config:
token: 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
rawRequest: true
defaultScalarType: unknown
overwrite: true
generates:
types.ts:
schema: github:marmelab/GraphQL-example#master:schema.graphql
documents:
- "document.graphql"
plugins:
- typescript
- typescript-operations
- typescript-graphql-request

Additional context

No response

@dotansimha
Copy link
Owner

@ardatan I think you recently fixed that?

@Irene350
Copy link

@ardatan any news on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Bug :-(
Projects
None yet
Development

No branches or pull requests

4 participants