-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Type 'ApolloLink' is not assignable to type 'ApolloLink | RequestHandler'. #10146
Comments
Hi @chetankondawle 👋🏻 thanks for opening this issue! I've set up a codesandbox in an attempt to reproduce the type error you're seeing. I haven't yet been successful. Perhaps the type annotation of |
@bignimbus looks like you might have accidentally used the issue URL for your codesandbox link 😆. Would you mind updating your comment to point to your codesandbox example? |
Updated - thanks for catching that @jerelmiller |
@bignimbus I have mentioned @ApolloClient : 3.6.9 as peer dependency in my custom library called @customapi/apolloClientWrapper. When using @customapi/apolloClientWrapper NPM is installing 3.6.10 in my main Project and hence I am able to see this issue. Below is the error I am getting, if that helps.
|
This happened to me recently with @apollo/client 3.11.10. The issue seemed to be due to another library with a |
Hey all 👋 I've seen this a few times myself come up and this is usually a symptom that you have multiple versions of Apollo Client installed. The fix is to ensure you're only installing a single version. I've seen this come up when dependencies themselves depend on As such, there is not much we can do our our side, so I'm going to go ahead and close this. |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Getting Type 'ApolloLink' is not assignable to type 'ApolloLink | RequestHandler' on 3.6.10 upgrade.
Code is throwing error on
httpLink
andauthLink
Intended outcome: Should work as it was working with 3.6.9
Actual outcome: Throwing
Type 'ApolloLink' is not assignable to type 'ApolloLink | RequestHandler'
on 3.6.10 upgrade.Versions : @apollo/client : 3.6.10
The text was updated successfully, but these errors were encountered: