[英]Angular 7 using Scss file
我有一个在 angular 7 开发的项目。
但是,要使用库,我需要使用 a.scss 文件。
运行程序时出现以下错误
有谁知道我该如何解决? 已经尝试了一切并继续给出同样的错误:(
我的scss文件
@import '~@material/image-list/mdc-image-list'; .masonry-image-list { @include mdc-image-list-masonry-columns(3); &__item { background-color: #ccc; } }
你能提供你的 webpack 配置文件吗? 只需检查关于您的版本的 sass-loader 的文档。 您不能使用任何其他版本。 正如您在错误中看到的那样,您正在使用的版本上没有像“includePaths”这样的选项。
[英]SCSS file imports using ~ (tilde) is not working in Angular 6
[英]not found the scss file when using styling in angular
[英]angular issue in scss file
[英]Global .scss file in Angular 2
[英]Architecture for using SCSS with Angular 2/4
[英]Angular - How to import a scss variable file using ngc -w?
[英]Angular 4 with Webpack - SCSS file not loading
[英]Angular 12 using inline scss
[英]using foundation 6 scss with angular 2 cli
[英]Using Bootstrap 5 in Angular 14 with SCSS
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.