graphql-tools/links
– AwaitVariablesLink
doesn't have properties from ApolloLink
#4897
Closed
4 tasks
Issue workflow progress
Progress of the issue based on the Contributor Workflow
Describe the bug
After upgrading to the latest version of
@graphql-tools/links
and moving forward with updating my app to ESM, I am getting an error thatAwaitVariablesLink
doesn't haveconcat
property. I see that it extendsApolloLink
:and basically, it should have it along with
ApolloLink
's constructor, which is not being seen by Typescript.To Reproduce
Steps to reproduce the behavior:
Link to codesandbox - https://codesandbox.io/s/heuristic-morning-zm76mw?file=/src/index.ts
Expected behavior
AwaitVariablesLink
has properties fromApolloLink
Environment:
@graphql-tools/links
-8.3.24
UPD: This might be an issue in
@apollo/client
or in typings on thegraphql-tools/link
side. I am thinking that the way of how you're importing@apollo/client
can also trigger the issue whenreact
is missing in dependencies:Apollo Client team mentioned that
react
won't be required if@apollo/client
will be imported like suggested in commented in apollographql/apollo-client#7318Please, LMK if I can provide more details! Thanks
The text was updated successfully, but these errors were encountered: