-
Notifications
You must be signed in to change notification settings - Fork 131
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 Admin Codegen import types throwing TS error #798
Comments
Hi @daweido, thank you for opening this issue, we'll take a look 👍 |
Has anybody been able to use this? I don't get how they have...but I'm open to suggestions! |
Yeah, you can temporarily get past this by manually editing the generated
But obviously this has to be done every time the file is re-generated so its not a suitable fix. I believe the permanent fix would be to set the config I could be wrong but I've had a quick look and I think this needs to be applied around here where the plugin is specified:
|
This probably fixes it: Shopify/graphql-codegen#7 |
Bumping a dependency to get the fix in this monorepo: #863 |
Issue summary
Using @shopify/admin-api-client with codegen. However, I have this error on my
admin.generated.d.ts
:Before opening this issue, I have:
@shopify/*
package and version:{ logger: { level: LogSeverity.Debug } }
in my configuration, when applicableI have followed the example given from the @shopify/admin-api-client GraphQL codegen section.
When opening my the file
admin.generated.d.ts
I have this error:I have tried changing the config to this:
Which should work, but I still have the same problem. This does not allow me to run my application. I can change it manually but I would have to do so every time I run codegen.
Expected behavior
What do you think should happen?
Having generated files which work out of the box.
Actual behavior
What actually happens?
A Typescript error on an import.
Steps to reproduce the problem
admin.generated.d.ts
.The text was updated successfully, but these errors were encountered: