Skip to content

scss Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0. #694

@linonetwo

Description

@linonetwo

Solution: in package json

"postinstall": "sass-migrator -d division path/to/your.scss",

This solves

Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($control-size - $control-size-sm, 2) or calc(($control-size - $control-size-sm) / 2)

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

    ╷
205 │   margin: ($control-size - $control-size-sm) / 2 0;
    │           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
    node_modules/spectre.css/src/_forms.scss 205:11  @import
    - 6:9     
    - ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions