-
Notifications
You must be signed in to change notification settings - Fork 469
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
apollo client:codegen --target typescript gives TypeError: context.getErrors is not a function #1947
Comments
@anark I faced this issue when using That did the trick in my case. |
Downgrading to graphql@14 solved this. Is there anyway to fix this to make it compatible with graphql@15? |
@abernix I noticed your made a new release of
Could you take a look, please? PS: |
PR #1908 fixes this 🙂 |
@benhjames unfortunately this PR is not yet merged so we cannot upgrade to it yet 😞 |
I'm copying and pasting the comments from @trevor-scheer on #1908 so you make sure you see them and can help test:
Please try the |
Just an update: I was following #1908 and now I'm using It is working with GraphQL 15 as expected for the project I'm working on. |
Thanks for the update @juliovedovatto! I'm preparing the release to |
"apollo": "^2.29.0" works |
Intended outcome:
I am intending to export my graphql types to typescript types using
apollo client:codegen --target typescript
I expect to generate types in the generated folder
My Apollo client is running on @apollo/client v3.0.beta
Actual outcome:
I get the following error
How to reproduce the issue:
Run apollo codegen against a react app using @apollo/client v3.0.beta
Versions
apollo cli 2.27.4
@apollo/client v3.0.beta
The text was updated successfully, but these errors were encountered: