未捕获的typeerror:对象(…)不是angular中的函数bnngidleservice?

b09cbbtk  于 2021-07-13  发布在  Java
关注(0)|答案(0)|浏览(203)

在angular 7.2.4中,试图在编译并运行项目后显示登录页。启动时localhost:4200/#/login 控制台中出现以下错误:

Uncaught TypeError: Object(...) is not a function
    BnNgIdleService bn-ng-idle.js:79
    js bn-ng-idle.js:81
    Webpack 14

包.json

"dependencies": {
    "@angular-devkit/build-angular": "^0.13.0",
    "@angular/animations": "7.2.4",
    "@angular/cdk": "7.3.7",
    "@angular/common": "7.2.4",
    "@angular/compiler": "7.2.4",
    "@angular/core": "7.2.4",
    "@angular/forms": "7.2.4",
    "@angular/http": "7.2.4",
    "@angular/material": "7.3.7",
    "@angular/platform-browser": "7.2.4",
    "@angular/platform-browser-dynamic": "7.2.4",
    "@angular/router": "7.2.4",
    "@ng-bootstrap/ng-bootstrap": "4.0.1"
       },

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题