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

Using / for division is deprecated and will be removed in Dart Sass 2.0.0 #47

Open
jmsche opened this issue Jul 1, 2021 · 0 comments
Open

Comments

@jmsche
Copy link
Contributor

jmsche commented Jul 1, 2021

Hi,

While manually building the theme using sass, I'm getting this deprecation several times:

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

Recommendation: math.div($spacer, 4)

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

    ╷
311 │     1: $spacer / 4,
    │        ^^^^^^^^^^^
    ╵
    node_modules/@themesberg/volt-bootstrap-5-dashboard/src/scss/volt/_variables.scss 311:8  @import
    assets/volt.scss 24:9                                                                    root stylesheet

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

Recommendation: math.div($spacer, 2)

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

From what I could read, an easy fix to support both Dart Sass & Node Sass is to multiply instead of dividing, eg. $spacer / 4 would become $spacer * 0.25.

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

1 participant