简体   繁体   中英

Angular 7 using Scss file

I have a project developed in angular 7.

However, to use a library, I need to use a.scss file.

When running the program I get the following error

图片

Does anyone know how I can solve it? Already tried a little of everything and continues to give the same error:(

My scss file

@import '~@material/image-list/mdc-image-list';

.masonry-image-list {
  @include mdc-image-list-masonry-columns(3);

  &__item { background-color: #ccc; }
}

Can you provide your webpack config file? Just check the documentation of sass-loader which is about your version. You can not use any other versions. As you can see in the error, there is no option like "includePaths" on the version you are using.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM