Open olaf89 opened 7 years ago
I have created a PR for this
@kamilkisiela
any news about this issue?
@avalla the PR still open https://github.com/kamilkisiela/apollo-client-rxjs/pull/44
Hi, I have made another pull request (https://github.com/kamilkisiela/apollo-client-rxjs/pull/45) to bring some ideas to the table about how to deal with this issue. In particular, I have augmented the interface Observable to overload the lift method.
Aside from an update in the test to use Promises in the asserts, there aren't additional changes.
I have tested angular-apollo and our projects using this branch with Typescript@2.4.2 and they went Ok.
However, to be honest, I don't know if this can introduce issues with older versions of Typescript.
I'm also having some issues with this. Got rid of compile errors for apollo-client@1.9.0 and rxjs@5.4.2 by updating typescript to 2.4.2 but now got this in apollo-client-rxjs... Any workarounds anyone else have used, other than reverting back to older typescipt version?
@patriknil90 you can disable strict generic checks by puttings this line in the compilerOptions of tsconfig.app.json:
"noStrictGenericChecks": true
Thanks @cime . Worked perfectly as a workaround!
Could you try out v0.6.0-rc.1
?
Updating to typescript@2.5.2
(and apollo-client@1.9.2
) did not produce these errors that I experienced with typescript@2.4.x
.
Guys, if you're using apollo-client-rxjs
with apollo-angular
the issue will be fixed in the next release. We take a different approach to make ApolloClient to work with RxJS. No more TypeScript issues!
If you use apollo-angular then we changed the way ApolloClient works with RxJS. You can check it here: apollographql/apollo-angular#377
No more this kind of issues.
Class 'RxObservableQuery' incorrectly extends base class 'Observable<ApolloQueryRes
ult>'.
I think rxjs updated typings for lift operator. which causes this conflict.
The 'this' context of type 'ApolloQueryObservable<>' is not assignable to method's 'thi s' of type 'Observable<ApolloQueryResult<>>'. Types of property 'lift' are incompatible.