問題:
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