Angular 14 中的引导安装失败
我想使用 ng add @ng-bootstrap/ng-bootstrap
在 Angular 14 中安装 Bootstrap,但我在 PhpStorm Idea 中遇到了错误。我应该怎么办?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我想使用 ng add @ng-bootstrap/ng-bootstrap
在 Angular 14 中安装 Bootstrap,但我在 PhpStorm Idea 中遇到了错误。我应该怎么办?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
后来的编辑
看起来像
ng-bootstrap
添加了对Angular 14.1原始答案的支持
@ng-bootstrap/ng-bootstrap/ng-bootstrap 代码>今天6/16/2022是12.1.2是为Angular 1的设计。
您看到的错误是由于它们在其库中具有peerdectipecy的事实。
根据本期他们目前正在释放支持Angular 14的新版本。
目前,您可能能够安装
ng-bootstrap@next
(这是版本13.0.0-beta.1
是为Angular 14设计的)Later edit
Looks like the latest release v13.0.0 of
ng-bootstrap
adds support for Angular 14.1Original answer
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 version13.0.0-beta.1
that's designed for Angular 14)