-
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
Typescript definition problems with apollo-client@next and link-core / cache-core #2212
Comments
In my case
|
@katopz The same error with version apollo-client 2.0.1 and react-apollo 2.0.0 |
This seems closely related (or identical even) to apollographql/react-apollo#1299. |
Looks like someone took a stab at it here which I'm working to release asap! Hopefully it fixes these issues! |
Is there any traction on this? We just tried to upgrade our codebase today and ran into this with the latest versions. @jbaxleyiii I don't see how the |
@jbaxleyiii - Any word on when this will be released? |
@iamclaytonray Seem working for me now, do try here https://github.com/katopz/apollo-client-preset-ts-example |
Any update on this? |
I can verify that the latest release fixes this problem. (Probably the release before latest as well. I haven't touched that project in about a couple of months.) |
This issue has been resolved (verified with |
Code in question:
Intended outcome:
This code is mostly copied from
apollo-client-preset
and I expected it to work out of the box. I might be missing some parameters for the cache, but typescript did not like the code even without the cacheActual outcome:
Typescript complains about:
Type 'InMemoryCache' is not assignable to type 'ApolloCache<{}>
Property 'write' is missing in type 'InMemoryCache'.
How to reproduce the issue:
The code in the beginning should produce the error
Version
The text was updated successfully, but these errors were encountered: