Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sass Division Depreciation Warning #220

Open
Okomikeruko opened this issue Jun 3, 2021 · 1 comment
Open

Sass Division Depreciation Warning #220

Okomikeruko opened this issue Jun 3, 2021 · 1 comment

Comments

@Okomikeruko
Copy link

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.

@Okomikeruko Okomikeruko changed the title Sass Depreciation Warnings Sass Division Depreciation Warning Jun 3, 2021
@jdelStrother
Copy link

Presumably this would be fixed by updating to the Bootstrap 5.0.2 release (#223)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants