找不到模块:错误:无法解决' @ angular / material / core / theming / prebuilt / deeppurple-amber.css'
in 'C:\xampp\htdocs\A NG2\mobufinancialment\src'
@ ./~/css-loader?{"sourceMap":false,"importLoaders":1}!./~/postcss-loader!./src/styles.css 3:10-201
@ ./src/styles.css
@ multi ./src/styles.css
答案 0 :(得分:1)
你的styles.css文件中可能有这样的东西:
@import '~@angular/material/core/theming/prebuilt/deeppurple-amber.css';
您需要将其更改为:
@import '~@angular/material/prebuilt-themes/deeppurple-amber.css';
答案 1 :(得分:0)
根据给定的信息,最好将Angular2-material主题移至index.html,如
<link href="https://unpkg.com/@angular/material@2.0.0-beta.3/prebuilt-themes/deeppurple-amber.css" rel="stylesheet">
在主index.html中使用这个就足够了这个文件。请检查此Plunker