question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sass deprecation warning: Using `/` for division is deprecated

See original GitHub issue

dart-sass has deprecated / in favor of math.div. Compiling https://github.com/twbs/bootstrap/blob/main/scss/_variables.scss now results with many sass warnings.

368 │ $navbar-padding-horizontal:        floor(($grid-gutter-width / 2)) !default;
    │                                           ^^^^^^^^^^^^^^^^^^^^^^
    ╵
    node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss 368:43  @import

DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($grid-gutter-width, 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:273
  • Comments:58 (13 by maintainers)

github_iconTop GitHub Comments

154reactions
Onefivefourninecommented, May 21, 2021

Hope that the team will fix it soon! I am now unable to start dev build because of huge amount of warnings.

Guys from sass refuse to add any silencer for warnings, because they think that warnings are critical, and you should never silence them, even if there are 100k warning lines in your dev build. https://github.com/sass/libsass/issues/2822#issuecomment-482914373

UPDATE: Solved by manually downgrading sass to 1.32.*

50reactions
XhmikosRcommented, May 21, 2021

Please everyone stop spamming the issue. We will find a solution for v5. You should bug though the Sass devs to allow to hide these warnings. IMHO it’s pretty bad right now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using / for division outside of calc() is deprecated and will be ...
Using / to make divisions outside of calc function won't be supported anymore. Here is an overview of the reason why form the...
Read more >
Using / for division is deprecated and will be removed in Dart ...
DEPRECATION WARNING : Using / for division is deprecated and will be removed in Dart Sass 2.0.0 ... Hi, I really like this...
Read more >
Fix: "Using / for division is deprecated" on Sass - igna_
Recently Sass announced they're going to include a breaking change in order to comply with the latest CSS syntax. This affects everything that ......
Read more >
Breaking Change: Slash as Division - Sass
Remember, you can silence deprecation warnings from libraries you don't control! If you're using the command-line interface you can pass the --quiet-deps flag, ......
Read more >
Fix Using / for division is deprecated removed in DartSass2
DEPRECATION WARNING : Using / for division is deprecated and will be removed in Dart Sass 2.0.0 ... This issue occurs not also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Hashnode Post

No results found