-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unused imports are generated when using fragment #2416
Labels
Comments
Fixed and available as alpha |
Fixed in 1.7.0 |
Using 1.7.0, my problem was resolved. Thank you! |
Upgrading |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
tsc --noUnusedLocals
warn generated files because the files include unused imports when using fragment.To Reproduce
Steps to reproduce the behavior:
codegen.yml
config file:Expected behavior
Unused imports should be removed from generated files.
Environment:
@graphql-codegen/cli
: 1.6.1@graphql-codegen/near-operation-file-preset
: 1.6.1@graphql-codegen/typescript
: 1.6.1@graphql-codegen/typescript-operations
: 1.6.1typescript
: 3.5.3Additional context
The text was updated successfully, but these errors were encountered: