Type Error: Wrong generic types QueryRef (Apollo Client)
See original GitHub issueHello! We’re adding Apollo to two projects that use Angular 6 created with the latest Angular CLI. We got the setup done like in the documentation but when we run the project we get these errors:
node_modules/apollo-angular/QueryRef.d.ts(14,33): error TS2314: Generic type 'FetchMoreQueryOptions<TVariables, K>' requires 2 type argument(s).
node_modules/apollo-angular/QueryRef.d.ts(16,60): error TS2314: Generic type 'UpdateQueryOptions<TVariables>' requires 1 type argument(s).
And when we go to compile, the build fails completely. Is there anything we can do here to fix it?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Type Error: Wrong generic types QueryRef (Apollo Client) #669
We got the setup done like in the documentation but when we run the project we get these errors: node_modules/apollo-angular/QueryRef.d.ts(14,33): ...
Read more >Error handling - Apollo GraphQL Docs
Apollo Server's variety of error codes enables requesting clients to respond differently to different error types. You can also create your own custom ......
Read more >Handling operation errors - Apollo GraphQL Docs
Apollo Client helps you handle these errors according to their type, enabling you to show appropriate information to the user when an error...
Read more >Error handling - Apollo GraphQL Docs
To help with debugging, Apollo Server defines error subclasses that represent different types of errors that can occur while handling a GraphQL operation...
Read more >Full Stack Error Handling with GraphQL and Apollo
Validation Phase: Client sent inputs that failed GraphQL type checking; Execution Phase: Client sent bad user input (request out of range, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Neither one of that upgrades works for us, because we are using Ionic, which depends on RxJs 5, whereas the updates of Apollo Client require RxJs 6.
v1.1.1
contains a fix