从 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章