從 css 到 scss 的 Angular-cli - Angular-cli from css to scss

問題:

I've read the documentation , which says that if I want to use scss I have to run the following command:我已經閱讀了文檔,它說如果我想使用scss我必須運行以下命令:

ng set defaults.styleExt scss

But when I do that and make that file, I still receive this error in my console:但是當我這樣做並製作該文件時,我仍然在控制檯中收到此錯誤:

styles.bundle.js:33Uncaught Error: Module build failed: Error: ENOENT: no such file or directory, open '/Users/Egen/Code/angular/src/styles.css'(…)

解決方案:

參考一: https://en.stackoom.com/question/2ksiH
參考二: https://stackoom.com/question/2ksiH
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章