In my scss file I am importing a third-party css file
@import 'icons/third-party-icons/style';
Unfortunately, this style is missing the value for the color style
.mySelector {
content: "\eac2";
margin-left: -1em;
color: ;
}
As expected, node-sass is throwing the following error:
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js):
color: ; ^ Style declaration must contain a value
Is there any way to configure node-sass to ignore this invalid property?
You could override the imported css. The code is looking to use a value, but can't because it's null.
You could include in your style tags:
That !important will override whatever is imported from the stylesheet, and you class in the body will use that color instead of trying to use the null color.