Skip to content

deprecation warning with dart-sass #55

@tim-lai

Description

@tim-lai

Hello, I just switched from node-sass to (dart)sass, and now I see this warning in my Cypress tests:

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

   ╷
98 │   .w-two-thirds-ns { width: (100% / 1.5); }
   │                              ^^^^^^^^^^
   ╵
    node_modules/tachyons-sass/scss/_widths.scss 98:30  @import
    node_modules/tachyons-sass/tachyons.scss 72:10      @import
    src/style/main.scss 3:13                            root stylesheet

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

Recommendation: math.div(100%, 3)

There's actually quite a few warnings of similar nature.

Context: Libsass/Node Sass is deprecated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions