0

在这里,我在安装 ngx 时收到上述错误

包.json

 "ngx-bootstrap": "^1.8.1",

System.config.js

//这是我的 ngx-bootstrap

   'ngx-bootstrap': 'npm:ngx-bootstrap/bundles/ngx-bootstrap.umd.js',

这里我得到错误为'ngx-bootstrap':'npm:ngx-bootstrap/bundles/ngx-bootstrap.umd.js/modal.js',

我以前的链接

 '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',

请指导我,从我做错的地方

4

1 回答 1

0

ModalModule你在@NgModule 中从哪里导入?看起来你是从ngx-bootstrap/modal. System.JS 用户必须直接从 导入模块ngx-bootstrap,正如官方演示所说http://valor-software.com/ngx-bootstrap/#/modals#usage

于 2017-08-08T12:03:43.227 回答