angular - Angular 项目 .sass 无法构建
问题描述
当我尝试构建或提供 Angular 应用程序时,我遇到了以下描述的情况。文件肯定在那里。什么可能导致这种情况?
ng build
找不到多 ./src/styles.sass 模块中的错误:错误:无法解析“/Users/konstantinwerhahn”中的“/Users/konstantinwerhahn/Go/src/github.com/randomprofile/khw/src/styles.sass” /Go/src/github.com/randomprofile/khw'
解决方案
好吧很奇怪。我找到了答案,但不是它到达那里的原因。
由于某种原因,扩展名默认为 .sass ,当更改为 .scss 时,一切正常。
"styles": [
"src/styles.scss" // default was: src/styles.sass
],
推荐阅读
- sql - 只保留一列最少的行
- assembly - 如何安全地传递最终传递到内联汇编的 IO 地址?
- python - 抓取仅在单击 btn 时出现的 html 内容
- spring-boot - docker deploymnet 成功后无法在 localhost 上连接应用程序
- javascript - Javascript中合并排序的迭代方法
- ios - 获取给定时间格式的错误日期
- python - Having trouble creating stix2 bundle when a list of SDO are passed
- excel - Excel formula like MLM
- flutter - i have an error : 'List
>' is not a subtype of type 'List ' - python - 如何从另一个 python 文件访问 QPushButton?