Skip to content

Update template's main.scss to address deprecated warnings #174

@Yuriko-Schumacher

Description

@Yuriko-Schumacher

We get this warning every time we run npm run deploy

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

Recommendation: math.div($px, $base-font-size) or calc($px / $base-font-size)

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

    ╷
111 │     @return ($px / $base-font-size) * 1em;
    │              ^^^^^^^^^^^^^^^^^^^^^
    ╵
    node_modules/sass-mq/_mq.scss 111:14  mq-px2em()
    node_modules/sass-mq/_mq.scss 198:25  mq()
    app/styles/_typography.scss 17:3      @import
    app/styles/main.scss 14:9             root stylesheet

The build was a success!

> parse
> node ./config/tasks/check-node-versions.js && NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=development node config/scripts/parse.js

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

Recommendation: math.div($px, $base-font-size) or calc($px / $base-font-size)

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

    ╷
111 │     @return ($px / $base-font-size) * 1em;
    │              ^^^^^^^^^^^^^^^^^^^^^
    ╵
    node_modules/sass-mq/_mq.scss 111:14  mq-px2em()
    node_modules/sass-mq/_mq.scss 198:25  mq()
    app/styles/_typography.scss 17:3      @import
    app/styles/main.scss 14:9             root stylesheet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions