-
I am creating a wrapper library for use in a couple of different projects. I'm interested in using the generated client but I'm getting errors in the generated code. I'm generating a client preset from an AWS AppSync API and the generated This is what my configuration looks like:
This is what is trying to reference that type What might I be doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I resolved this a while ago and I don't remember exactly the issue but it appears that I was missing the required If that was the issue, the example at the top of the documentation page should probably be updated to include setting https://the-guild.dev/graphql/codegen/docs/config-reference/codegen-config This is basically what my working config looks like.
|
Beta Was this translation helpful? Give feedback.
I resolved this a while ago and I don't remember exactly the issue but it appears that I was missing the required
generates.plugins
setting. I also decided to just generate the types as opposed to the client, but that may have just been what I got to work finally and moved on without tryinggenerates.preset: 'client'
in addition.If that was the issue, the example at the top of the documentation page should probably be updated to include setting
generates.plugins
.https://the-guild.dev/graphql/codegen/docs/config-reference/codegen-config
This is basically what my working config looks like.