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
[near-operations-file] Import of main types sometimes added to queries where it isn't needed #2729
Comments
Would love to see this solved, as we cannot use this preset with Workaround I landed on (inspired by OP) is to duplicate a field from the fragment that uses |
It's a bit tricky because it effects other use-cases. We are trying to find the actual specific use-cases that causes that. |
This was "fixed" for us by #4194 injecting usage of |
This resurfaced for us, btw. We're back to adding dummy queries to work around it. I'll try to put together a reproduction |
@SimenB sure, waiting for a reproduction. Thanks! |
@dotansimha https://github.com/SimenB/codegen-extra-imports. Might be possible to reduce even more, but this is at least somewhat minimal |
@dotansimha reopen this, or should I file a new issue? |
New issue :) |
Relates to #2137
This problem seems to be back in
1.8.1
, or at least something related.Results in the
Types
import being added, even though it isn't used.Also adds the
Types
import, but uses it.This is problematic when typescript is configured to error on unused imports.
The text was updated successfully, but these errors were encountered: