Getting typescript errors in generated fragment types, help? #8760
Unanswered
jkerrwilson
asked this question in
Q&A
Replies: 1 comment
-
can you share a minimal reproduction? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm getting the following typescript error on every fragment type generated, and I really can't find any information on what I need to change or how to fix it.
This is in a react app using apollo-client.
I'm currently attempting to generate TS types for an existing but currently still fairly small project, so the error currently shows up for around 50 fragments.
The error occurs on lines where fragments are spread into the parent query/mutation types, e.g.,
Can anyone provide insight on what is going wrong? the query/mutation/fragment setup in the code matches with those found in the relevant documetation blog post (https://the-guild.dev/blog/unleash-the-power-of-fragments-with-graphql-codegen). Only thing I have been able to find is this old issue (#528) which has similar error messages but otherwise appears unrelated.
Config:
dependency versions:
Beta Was this translation helpful? Give feedback.
All reactions