XHR 错误(404 未找到)加载 node_modules/ngx-bootstrap/bundles/ngx-bootstrap.umd.js/modal.js

XHR error (404 Not Found) loading node_modules/ngx-bootstrap/bundles/ngx-bootstrap.umd.js/modal.js

我在安装 ngx 时出现上述错误

Package.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',

请指导我,从哪里做错了

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