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

Installation with "ng add" is failing for v3.0.0 #1760

Closed enzeart closed 2 years ago

enzeart commented 2 years ago

Describe the bug

Installation with "ng add" is failing for v3.0.0.

To Reproduce ng new ui --routing=true --style=scss --skip-git ng add --skip-confirmation apollo-angular --endpoint="/api/graphql"

Expected behavior

I expect the package to be installed and for the project to be updated according to the schematic logic.

Environment: Some of the requested packages are missing after the attempted installation. Probably due to the failure.

@angular/cli@13.2.4 @angular/core@13.2.3 apollo-angular@3.0.0 typescript@4.5.5

I've also tried this installation with Angular 12.2.14 and 12.2.16.

Additional context [error] Error: Cannot find module '/node_modules/apollo-angular/schematics/install' Require stack:

LexanRed commented 2 years ago

Same problem here, any update on this one?

hexdecimal16 commented 2 years ago

yes same problem

weeken88 commented 2 years ago

Same problem. Both using Angular 12 and 13

MikaStark commented 2 years ago

ng update is failling too

juane1000 commented 2 years ago

Same issue. Any update on this?

Qubut commented 2 years ago

same issue, using angular 13

foorschtbar commented 2 years ago

Is there an update here? Just wanted to get started with Apollo 3 and Angular 13 - which is not an uncommon combination - and get exactly the same error :-(

BlinkAC commented 2 years ago

same error. EDIT: I spent my entire day trying to make apollo work, for anyone who still having the issue look at this it might help Consuming a GraphQL API with Angular At least work for me (I'm using angular 13.3.0) image

MikaStark commented 2 years ago

The only solution is to manually install/update Apollo-angular (see readme file)

kamilkisiela commented 2 years ago

PR welcome

kamilkisiela commented 2 years ago

PR welcome

v3.0.1 is out, try it out and let me know if it works

afkir01 commented 2 years ago

Just created a new app with Angular version 13.1.3 and apollo-angular version 3.0 and works perfect.