question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
meirrothcommented, Aug 24, 2021

Thank you @dmalson-zaelab, I submitted a pull request

1reaction
Maronatocommented, Oct 16, 2021

Hey y’all, terribly sorry for the delay 😞 I’ve fixed it in version v2 and will add it to the next release. Will do the same for v1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using / for division outside of calc() is deprecated and will be ...
Deprecation Warning : Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0 [duplicate] · Ask...
Read more >
Using / for division is deprecated and will be removed in Dart ...
Describe the bug It seems that there is now a deprecation warning when compiling Font Awesome 5.15.3 with the latest version of SASS...
Read more >
Using / for division is deprecated and will be removed in Dart ...
I recently updated the app and now I get the error below. Codekit still compiles the files, but complains a bit. Dart Sass...
Read more >
Breaking Change: Slash as Division - Sass
The / operator still does division for now, but it also prints a deprecation warning when it does so. Users should switch all...
Read more >
Warning division is decrepted - fontawesome
DEPRECATION WARNING : Using / for division is deprecated and will be removed in Dart Sass 2.0.0. Recommendation: math.div(20em, 16). More info and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found