Skip to content
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

Which angular versions are supported? (v8,v9,v10 etc) #1597

Closed
benwinding opened this issue Nov 17, 2020 · 3 comments
Closed

Which angular versions are supported? (v8,v9,v10 etc) #1597

benwinding opened this issue Nov 17, 2020 · 3 comments

Comments

@benwinding
Copy link

Describe the bug

  • I can't seem to find any information about which @angular versions that this library supports? 7,8,9,10 ect.
  • We have an angular 8 project, this package throws a many errors due to angular 8 requiring older versions of typescript (which we cannot change due to the angular compiler throwing errors)

This should probably added to the documentation, as most people would love to add this to existing angular projects, and it's not always trivial to upgrade a large application to the latest version of angular...

@UchihaYuki
Copy link

UchihaYuki commented Nov 17, 2020

Hi, I just got the answer from @dotansimha:

v2 of apollo-angular works with Angular 10 and Apollo Client v3

But as specified in issue 7335, you might have to use @apollo/client@3.2.5 temporarily, until the bug is fixed. (At least I think it's a bug, haven't spent time on it though)

@dotansimha
Copy link
Collaborator

dotansimha commented Nov 17, 2020

And if you are using Apollo-Client v2, please use apollo-angular@v1 and make sure to update the latest. (v1.10 supports Angular 10, see the release notes: https://github.com/kamilkisiela/apollo-angular/releases/tag/v1.10.0)

And as @UchihaYuki said, if you are having errors like:

ERROR in node_modules/@apollo/client/node_modules/symbol-observable/index.d.ts:6:14 - error TS2717: Subsequent property declarations must have the same type. Property 'observable' must be of type 'symbol', but here has type 'unique symbol'.

Please use @apollo/client@3.2.5. It's an issue introduced in v3.2.6 (see apollographql/apollo-client#7337 apollographql/apollo-client#7335)

@dotansimha
Copy link
Collaborator

PR to update the docs: #1598

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants