对象(…)不是angular-bootstrap-md.js:10351上的函数

对象(…)不是angular-bootstrap-md.js:10351上的函数,angular,angular-ui-bootstrap,Angular,Angular Ui Bootstrap,我安装了angular bootstrap md以使用以下模块: import { WavesModule, TableModule, IconsModule } from 'angular-bootstrap-md'; 但是收到这个错误: angular-bootstrap-md.js:10351 Uncaught TypeError: Object(...) is not a function at angular-bootstrap-md.js:10351 at Modu

我安装了angular bootstrap md以使用以下模块:

import { WavesModule, TableModule, IconsModule } from 'angular-bootstrap-md';
但是收到这个错误:

angular-bootstrap-md.js:10351 Uncaught TypeError: Object(...) is not a function
    at angular-bootstrap-md.js:10351
    at Module../node_modules/angular-bootstrap-md/fesm5/angular-bootstrap-md.js (angular-bootstrap-md.js:10353)
    at __webpack_require__ (bootstrap:78)
    at Module../src/app/admin/admin.module.ts (admin.component.ts:8)
    at __webpack_require__ (bootstrap:78)
    at Module../src/app/app.module.ts (app.component.ts:9)
    at __webpack_require__ (bootstrap:78)
    at Module../src/main.ts (main.ts:1)
    at __webpack_require__ (bootstrap:78)
    at Object.0 (main.ts:12)
这是我的package.json:

"dependencies": {
    "@angular/animations": "^7.2.0",
    "@angular/cdk": "^7.2.0",
    "@angular/common": "~7.2.0",
    "@angular/compiler": "~7.2.0",
    "@angular/core": "~7.2.0",
    "@angular/forms": "~7.2.0",
    "@angular/material": "^7.2.0",
    "@angular/platform-browser": "~7.2.0",
    "@angular/platform-browser-dynamic": "~7.2.0",
    "@angular/router": "~7.2.0",
    "@ng-bootstrap/ng-bootstrap": "^2.0.0-alpha.0",
    "@ng-bootstrap/schematics": "^2.0.0-alpha.1",
    "angular-bootstrap-md": "^8.1.0",
    "angular-font-awesome": "^3.1.2",
    "bootstrap": "^4.3.1",
    "core-js": "^2.5.4",
    "font-awesome": "^4.7.0",
    "jquery": "^3.4.1",
    "jwt-decode": "^2.2.0",
    "ng2-search-filter": "^0.5.1",
    "ngx-pagination": "^4.1.0",
    "ngx-toastr": "^10.0.4",
    "popper": "^1.0.1",
    "popper.js": "^1.15.0",
    "rxjs": "~6.3.3",
    "tslib": "^1.9.0",
    "zone.js": "~0.8.26"
  },
对于HTML和TS文件,我使用


仍然找不到如何解决此问题…

您可能安装了错误的库这里有一个如何安装的示例:

问题是这个库不仅适用于Angular,还适用于其他框架,您可以用不同的方式安装它


因此,您应该使用
ng add angular bootstrap md
命令安装它。

我也遇到了同样的问题,请尝试

添加角度引导-md@6.3.0

我在版本8上得到了这个问题,但我发现它只在版本8上有效
降级到6.3.0可解决问题

我重新插入angular/core时遇到的问题,但不能解决问题。请尝试通过
ng add
命令或自行更改文件在
quick start
上安装它。