2017-04-11 36 views
-4

錯誤在./~/css-loader?{"sourceMap":false,"importLoaders":1}!./~/postcss-loader!./src/styles。 CSS編譯錯誤,當我運行ng服務在angular2

模塊未找到:錯誤:無法解析 '@角/材料/核心/主題化/預建/ 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 
+2

需要採取哪些步驟來重現問題? –

回答

0

按照給定的信息,這將是最好的移動你的Angular2材料主題index.html像

<link href="https://unpkg.com/@angular/[email protected]/prebuilt-themes/deeppurple-amber.css" rel="stylesheet"> 

只要使用此在主index.html中就足夠了這個文件。勾選此Plunker

相關問題