kamilkisiela / apollo-angular

A fully-featured, production ready caching GraphQL client for Angular and every GraphQL server 🎁
https://apollo-angular.com
MIT License
1.5k stars 311 forks source link

Support angular 12 #1669

Closed MikaStark closed 3 years ago

MikaStark commented 3 years ago

Describe the bug

Hello :) apollo-angular has a peer dependency to @angular/core@"^6.1.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0". It will be great if it can accept the new angular 12 version

To Reproduce Steps to reproduce the behavior:

Update to angular 12 and try to install apollo-angular (or update it). You will get :

npm ERR! Could not resolve dependency:
npm ERR! peer @angular/core@"^6.1.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0" from apollo-angular@2.4.0
npm ERR! node_modules/apollo-angular
npm ERR!   apollo-angular@"^2.4.0" from the root project

Environment:

├── @angular/cli@12.0.0
├── @angular/core@12.0.0
├── @apollo/client@3.3.19
├── apollo-angular@2.4.0
├── graphql@15.5.0
└── typescript@4.2.4

Additional context

Thanks for your work :)

damingerdai commented 3 years ago

i still use apollo-angular 1.x. cloud we add the angular 12 support for v1.x?

celvin commented 3 years ago

I also have this issue with Angular 11

Could not resolve dependency: npm ERR! peer @angular/common@"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0" from apollo-angular-link-http-common@1.10.0 npm ERR! node_modules/apollo-angular-link-http-common npm ERR! apollo-angular-link-http-common@"^1.10.0" from the root project

shlomim-s1 commented 3 years ago

Is there a time estimate for releasing the new version that will be compatible with Angular 12? ) (for v2.x)

PhilippS93 commented 3 years ago

also experiencing this error

kamilkisiela commented 3 years ago

v2.5.0

celvin commented 3 years ago

@kamilkisiela same happening with apollo-angular-link-http-common

kamilkisiela commented 3 years ago

@celvin http link is now under apollo-angular/http