ctorParameters.map is not a function in angular2-mdl

前端 未结 6 1614
广开言路
广开言路 2020-11-28 13:29

I\'m trying to use angular2-mdl with angular-cli. I imported MdlModule in app.module.ts.

When I try to use

6条回答
  •  星月不相逢
    2020-11-28 14:27

    I had that same issue. it was causing because i was using

    "ng2-bootstrap": "^1.3.1",

    "@angular/common": "2.0.1",

    "@angular/compiler": "2.0.1",

    "@angular/core": "2.0.1",

    "@angular/platform-browser": "2.0.1",

    Then I updated angular dependencies to

    "@angular/common": "2.2.3",

    "@angular/compiler": "2.2.3",

    "@angular/core": "2.2.3",

    "@angular/platform-browser": "2.2.3",

    it worked fine.

提交回复
热议问题