-
Notifications
You must be signed in to change notification settings - Fork 178
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
2.7.0 breaks existing typescript code #150
Comments
/cc @felixfbecker in case you have an idea as to what's going on here — im not super familiar with typescript but i'll try and repro. i'll revert this change in an hour if i can't fix it. |
based on https://stackoverflow.com/questions/43335336/error-ts4058-return-type-of-exported-function-has-or-is-using-name-x-from-exter it looks like TypeScript users will have to explicitly import if this is the case, im going to revert this change since its a breaking API change or at least consider it in a major change |
reverted in 2.7.3 pending further investigation. see #141 for some context as to why this was added in the first place, but i think this might be a breaking change |
Yeah this is a known issue in TypeScript: microsoft/TypeScript#9944 |
ah, i see that would be helpful to know what the workflow change is here. if we re-export the interface within if existing users need to change their code, then we need to mark this with a major version change |
Tbh I don't know, I think it would still be required. But it would prevent another problem which is if you have multiple versions, there is no way for you to import the correct version of |
I still wish this was a thing, even if it was breaking. 😄 |
This reverts commit ae792b6. Based on #196 and #150, introducing the `DocumentNode` return value causes this library to break for existing TypeScript installations. I'm reverting this temporarily so we can release support for GraphQL v14 in a minor patch, and if we can't fix the TypeScript configuration, we'll release a major version with this commit back in.
This reverts commit ae792b6. Based on #196 and #150, introducing the `DocumentNode` return value causes this library to break for existing TypeScript installations. I'm reverting this temporarily so we can release support for GraphQL v14 in a minor patch, and if we can't fix the TypeScript configuration, we'll release a major version with this commit back in.
this code:
Those are the dependencies that work
but when updating to graphql-tag@2.7.0 we get and error:
staying with 2.6.1 for now. Thanks!
The text was updated successfully, but these errors were encountered: