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

@capacitor/angular cannot be added

オープン
#23 コメント 3 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
13
フォーク
8
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。