ionic-team / ionic-team/capacitor-angular-toolkit
@capacitor/angular cannot be added
- Lingua principale
- TypeScript
- Stelle
- 13
- Fork
- 8
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hello. I'm trying to add @capacitor/angular into my project using the command `ng add @capacitor/angular`
I met some warnings before installation and the actual installation failed as well.

```
The package @capacitor/angular will be installed and executed.
Would you like to proceed? Yes
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: sample@0.0.0
npm ERR! Found: rxjs@6.6.7
npm ERR! node_modules/rxjs
npm ERR! rxjs@"~6.6.0" from the root project
npm ERR! rxjs@"6.6.7" from @angular-devkit/core@12.2.12
npm ERR! node_modules/@angular-devkit/core
npm ERR! peer @angular-devkit/core@">=12.0.0" from @capacitor/angular@2.0.0
npm ERR! node_modules/@capacitor/angular
npm ERR! @capacitor/angular@"*" from the root project
npm ERR! @angular-devkit/core@"12.2.12" from @angular-devkit/schematics@12.2.12
npm ERR! node_modules/@angular-devkit/schematics
npm ERR! peer @angular-devkit/schematics@">=12.0.0" from @capacitor/angular@2.0.0
npm ERR! node_modules/@capacitor/angular
npm ERR! @capacitor/angular@"*" from the root project
npm ERR! 1 more (@angular-devkit/schematics)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer rxjs@"~6.4.0" from @capacitor/angular@2.0.0
npm ERR! node_modules/@capacitor/angular
npm ERR! @capacitor/angular@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
```
I tried creating a new Angular project, installed capacitorJS and ran `ng add @capacitor/angular`
but I still faced the same issue.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.