Angular 2 styles.css编译错误

时间:2017-06-11 19:04:08

标签: angular web-applications

我正在尝试编译我之前成功编译的angular 2应用程序,但现在却没有。我不知道是什么问题。

这是我得到的错误。 enter image description here

1 个答案:

答案 0 :(得分:0)

您的styles.css中材质主题的导入路径已更改。它现在是:@import '~@angular/material/prebuilt-themes/deeppurple-amber.css';

有关更多信息,请参阅: https://material.angular.io/guide/theming

更改日志(2.0.0-beta.3 cesium-cephalopod): https://github.com/angular/material2/blob/master/CHANGELOG.md