【发布时间】:2017-03-09 12:38:02
【问题描述】:
由于我已将环境更新为 @angular/cli 和 @angular/material 的较新版本,因此我无法运行 angular2 应用程序。
ERROR in ./src/app/components/general/table/table.scss
Module build failed:
undefined
^
Argument `$map` of `map-get($map, $key)` must be a map
Backtrace:
node_modules/@angular/material/core/option/_option-theme.scss:5, in function `map-get`
node_modules/@angular/material/core/option/_option-theme.scss:5, in mixin `mat-option-theme`
node_modules/@angular/material/core/_core.scss:30, in mixin `mat-core-theme`
node_modules/@angular/material/core/theming/_all-theme.scss:29, in mixin `angular-material-theme`
src/satellic-theme.scss:21
in C:\STP-CAS\workspace\cdhub_cockpit\node_modules\@angular\material\core\ option\_option-theme.scss (line 5, column 16)
@ ./src/app/components/general/table/table.component.ts 133:21-44
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
错误似乎在@angular/material/core.有谁知道如何解决这个问题?
【问题讨论】: