You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a compiler on the scss files in this repository I recently got about 16 of these warnings pointing to various lines in 3 different file names:
Deprecation Warning: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($rfs-base-value, math.div($rfs-base-value * 0 + 1, $rfs-rem-value))
More info and automated migrator: [https://sass-lang.com/d/slash-div](https://sass-lang.com/d/slash-div)
62 │ $rfs-base-value: $rfs-base-value / ($rfs-base-value * 0 + 1 / $rfs-rem-value);
.../bootstrap/vendor/_rfs.scss 62:20 @import
It looks like Sass is depreciating the / operator for division and replacing it with math.div(a, b); which requires the use of @use 'sass:math'; in the .scss files.
The files listed containing multiple instances of this error were:
/bootstrap/vendor/_rfs.scss
/boostrap/_variables.scss
/boostrap/_grid.scss
This is more of Bootstrap's problem than this gem specifically. I just wanted to share my discovery in case it leads to something more substantial later.
BTW. I'm only using the bootstrap-grid.scss file, so there may be more instances of division by \ that need replacing throughout.
The text was updated successfully, but these errors were encountered:
Okomikeruko
changed the title
Sass Depreciation Warnings
Sass Division Depreciation Warning
Jun 3, 2021
When running a compiler on the
scss
files in this repository I recently got about 16 of these warnings pointing to various lines in 3 different file names:It looks like Sass is depreciating the
/
operator for division and replacing it withmath.div(a, b);
which requires the use of@use 'sass:math';
in the.scss
files.The files listed containing multiple instances of this error were:
/bootstrap/vendor/_rfs.scss
/boostrap/_variables.scss
/boostrap/_grid.scss
This is more of Bootstrap's problem than this gem specifically. I just wanted to share my discovery in case it leads to something more substantial later.
BTW. I'm only using the
bootstrap-grid.scss
file, so there may be more instances of division by\
that need replacing throughout.The text was updated successfully, but these errors were encountered: