-
Notifications
You must be signed in to change notification settings - Fork 45
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 'TokenRefreshLink' is missing the following properties from type 'ApolloLink': onError, setOnError ts(2739) #20
Comments
I'm getting the same type error instantiating a new client using |
@miller-productions @maryschmidt A temporary solution that I'm using is just simply casting the Example: ....
new TokenRefreshLink({
accessTokenField: '....',
isTokenValidOrUndefined: () => {....},
fetchAccessToken: () => {....},
handleFetch: (accessToken) => {....},
handleError: (err) => {....},
}) as any,
.... |
Issue appears to be resolved following #18 I can confirm that I am no longer seeing the issue with
|
Reports in the wild this is still occurring using @apollo/client version 'rc-0'. Is anyone seeing this? |
Types of property 'split' are incompatible.
Fails here at |
@chrisjaimes , version 0.3.x is only compatible w/ apollo 3 |
I was able to resolve this by carefully ensuring everything in package.json about Apollo was at v3, removing yarn.lock, and reinstalling. This is rc2. |
@newsiberian thanks, I just downgraded to 0.2.5 but I'm still getting the following error:
unless... I do |
Confirm this error with @apollo/client version |
Closing this - confirmed it is no longer an issue in the latest versions of apollo-link-token-refresh and @apollo/client. |
Hi there,
Just wondering if anyone has encountered this issue.
When trying to use TokenRefreshLink, I get the following error when building up the link property..
I also build up a basic set of other links
Then...
Using the following
I have found the following similar type of issue over here and also here.
I have tried the following:
(new TokenRefreshLink({
etcas unknown) as ApolloLink
The text was updated successfully, but these errors were encountered: