ionic-team / ionic-team/capacitor-angular-toolkit

@capacitor/angular cannot be added

Offen
#23 3 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
13
Forks
8
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.
![image](https://user-images.githubusercontent.com/3053739/139566237-d20bbbcd-5169-4cdd-888e-003dc4fda14f.png)

```
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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.