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

@capacitor/angular cannot be added

Đang mở
#23 3 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
13
Fork
8
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.