Angular 14 中的引导安装失败

发布于 2025-02-08 10:53:08 字数 353 浏览 6 评论 0 原文

我想使用 ng add @ng-bootstrap/ng-bootstrap ​在 Angular 14 中安装 Bootstrap,但我在 PhpStorm Idea 中遇到了错误。我应该怎么办?

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

忆依然 2025-02-15 10:53:08

后来的编辑

看起来像 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.1

Original 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 version 13.0.0-beta.1 that's designed for Angular 14)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文