Open nasirkhan opened 3 years ago
Hello @nasirkhan,
Thank you for using our products, we don't usually use Yarn to compile our products SCSS. I will talk with my colleagues and maybe in the future product updates, we will integrate the Yarn besides Gulp. Please let us know if we can help you with anything else.
All the best, Stefan
Hi, I use Koala for compile and I got the same error. No changes, just downloaded version.
Error: Base-level rules cannot contain the parent-selector-referencing character '&'.
on line 15 of ***/soft-ui-design-system-main/assets/scss/soft-design-system/_gradients.scss
from line 42 of ***/soft-ui-design-system-main/assets/scss/soft-design-system/theme.scss
from line 27 of ***\soft-ui-design-system-main\assets\scss\soft-design-system.scss
Fix in _gradients.scss:
@each $prop, $value in $theme-colors {
&.bg-gradient-faded-#{$prop}-vertical{
background-image: radial-gradient(200px circle at 50% 70%, rgba($value, .3) 0, $value 100%);
}
}
delete & (there is no parent rule)
@each $prop, $value in $theme-colors {
.bg-gradient-faded-#{$prop}-vertical{
background-image: radial-gradient(200px circle at 50% 70%, rgba($value, .3) 0, $value 100%);
}
}
The deprecation warnings are not caused by yarn, it is caused by using Dart Sass (which is now the reference implementation of Sass). Dart Sass is deprecating "/" as a divide symbol. We are currently in the transition period, so it is printing deprecation warnings (see https://sass-lang.com/documentation/breaking-changes/slash-div)
This can be fixed by either changing to math.div()
(backward compatibility issues) or wrapping all division operations in a calc().
I added the
soft-ui-design-system
package via Yarn and tried to build the SASS via webpack. But build failed with a number of errors. Here are some warnings and errors i faced, what are the options to build the SASS here?