Closed tictaqqn closed 12 months ago
This is a duplicate of https://github.com/DefinitelyTyped/DefinitelyTyped/issues/47369. Deleting your lock file and reinstalling the modules should resolve this.
Closing because a possible solution has been suggested, and I'm relatively confident that there isn't a problem with the types because the example app uses Apollo Client v3.8 and the TypeScript check script works ok:
Be sure to configure TypeScript according to the documented requirements:
https://github.com/jaydenseric/apollo-upload-client/tree/v18.0.1#requirements
Also, be sure to uninstall @types/apollo-upload-client
as the package apollo-upload-client
contains its own types now. you can use the command npm ls @types/apollo-upload-client
to be sure it's not installed by anything in node_modules
.
If you are able to narrow down something that is reproducibly wrong with this package, we can reopen this issue.
While working on a project with Apollo Client 3.8, I've encountered a type incompatibility issue between the type of
ApolloLink
and the return type ofcreateUploadLink
. Specifically, the types of the fieldssplit
,left
,right
inApolloLink
appear to be incorrect.