问题:
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