Sass deprecation warning: Using `/` for division is deprecated
See original GitHub issuedart-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:
- Created 2 years ago
- Reactions:273
- Comments:58 (13 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
Top Related Hashnode Post
No results found
Top GitHub Comments
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.*
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.