code ERESOLVE
ERESOLVE could not resolve
While resolving: @ionic/[email protected]
Found: [email protected]
node_modules/rxjs
rxjs@"^6.5.3" from the root project
peer rxjs@"^6.5.3 || ^7.4.0" from @angular/[email protected]
node_modules/@angular/cdk
@angular/cdk@"^16.2.6" from the root project
peer @angular/cdk@"16.2.6" from @angular/[email protected]
node_modules/@angular/material
@angular/material@"^16.2.6" from the root project
11 more (@angular/common, @angular/core, @angular/forms, ...)
Could not resolve dependency:
peer rxjs@">=7.5.0" from @ionic/[email protected]
node_modules/@ionic/angular
@ionic/angular@"^7.4.2" from the root project
Conflicting peer dependency: [email protected]
node_modules/rxjs
peer rxjs@">=7.5.0" from @ionic/[email protected]
node_modules/@ionic/angular
@ionic/angular@"^7.4.2" from the root project
它想要 rxjs^6.5.3,我在 package.json 中做了它想要的事情。为什么还是不高兴。
或者这意味着它可以,只是离子/角度不行,这让我很困惑。
显然它的意思是
Found: [email protected]
node_modules/rxjs
rxjs@"^6.5.3" from the root project
@rxjs 6.6.7
是我们安装的。没问题。
但是
peer rxjs@">=7.5.0" from @ionic/[email protected]
所以这是行不通的,
通过降级到
@ionic/[email protected]
解决了这个问题。它peers @rxjs^6.5.3
.
rxjs 6.7.7
有竞争力。