Skip to content

Getting deprecated warning: Using / for division is deprecated and will be removed in Dart Sass 2.0.0 #243

@meirroth

Description

@meirroth

Versions

  • 2.0.0-rc.1

Describe the bug

Hi,
I am importing the SCSS version of the styles so that I can override the variables.
When running serve in production mode, I get this warning:

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

Recommendation: math.div($vt-toast-max-width, 2)

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

   ╷
54 │       margin-left: -($vt-toast-max-width / 2);
   │                      ^^^^^^^^^^^^^^^^^^^^^^^
   ╵
    node_modules\vue-toastification\src\scss\_toastContainer.scss 54:22  @import
    stdin 5:9                                                            root stylesheet

Steps to reproduce

Reproduction
Option 1:

  1. Clone and install my repo: https://github.com/meirroth/vue-toastification-br
  2. Run npm run serve:prod

Option 2:

  1. Install normally
  2. Import the SCSS version of the styles
  3. Run build or serve in production mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions