简体   繁体   中英

bootstrap installation in angular 14 fail

I wanted to install Bootstrap in Angular 14 using "ng add @ng-bootstrap/ng-bootstrap" but I get an error in PhpStorm IDEA. What should I do?

Error

Error

The latest stable version of @ng-bootstrap/ng-bootstrap which today 6/16/2022 is 12.1.2 is designed for Angular 13.

The error you are seeing is due to the fact they have a peerDependecy to Angular 13 in their library.

According to this issue https://github.com/ng-bootstrap/ng-bootstrap/issues/4340 they are currently working on releasing a new version that supports Angular 14. At this time you might get be able to install ng-bootstrap@next (which is version 13.0.0-beta.1 that's designed for Angular 14)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM