首先,我用版本"7到8,8到9“来升级版本,但是在版本9中,我得到了太多的错误,很多不兼容的依赖。我花了很多时间在不起作用的事情上。所以我试着升级到最新版本。现在我只是发现了这些错误。/ng-bootstrap/fesm2015/ng-bootstrap.js:7332:7'NgbRating' is declared here.
node_modules/@ng-bootstrap/ng
我刚刚使用Angular CLI创建了一个全新的Angular 10项目,然后在设置了我的初始模块以及路由和测试后,我使用以下命令添加了建议的ng-bootstrap: ng add @ng-bootstrapIs it missing an Angular annotation?/node_modules/@ng-bootstrap/ng-bootstrap/rating/rating.module.js:7<
因此,我实现了一个模式:import {BsModalRef, BsModalService} from 'ngx-bootstrapthis.modalRef) { }}import {Injectable, NgZone} from '@angular}这导致了Uncaught TypeError: C
entry-point @ng-bootstrap/ng-bootstrap (module as esm5) due to compilation errors:
node_modules/@ng-bootstrap@ng-bootstrap/ng-bootstrap/rating/rating.module.js:7:5 - error NG6003: Appears in the NgModule.exports~~~~~~~~~~