0

I have this error while testing apollo-angular on angular 14

Error: node_modules/apollo-angular/types.d.ts:11:54 - error TS2312: An interface can only extend an object type or intersection of object types with statically known members.

11 export interface MutationResult<TData = any> extends FetchResult { ~~~~~~~~~~~~~~~~~~ how to reproduce the error:

  1. Create a new angular 14 project
  2. add apollo-angular on the project like here in the doc https://apollo-angular.com/docs/get-started

Can you help me? I really need to solve this problem now

enter image description here

san
  • 7
  • 3

2 Answers2

3

There is a current issue.

Use the version 3.6.9 of @apollo/client as a workaround.

Matthieu Riegler
  • 31,918
  • 20
  • 95
  • 134
1

Turns out you must upgrade to the version 4.1.0 of the apollo-angular. I was able to fix the issue after upgrading.

Check out this release.

Rich
  • 3,928
  • 4
  • 37
  • 66