Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using / for division is deprecated and will be removed in Dart Sass 2.0.0. #3364

Closed
tonprince opened this issue Jun 21, 2021 · 1 comment
Closed

Comments

@tonprince
Copy link

tonprince commented Jun 21, 2021

When building my project with sveltekit and vite, I always got warnings in the console:

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

I'm using Bulma 0.9.3, and sass 1.35.1.

Description

Replace division operator '/' with 'div' as described here:
https://sass-lang.com/documentation/breaking-changes/slash-div

Reproduce

Sample:
Recommendation: math.div($size, $slider-thumb-to-track-ratio)

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

 ╷
16 │     $track-height: $size / $slider-thumb-to-track-ratio
  │                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
   node_modules/bulma-slider/src/sass/index.sass 16:17  slider-size()
   node_modules/bulma-slider/src/sass/index.sass 210:3  @import
   src/styles/bulma.scss 13:9                           @import
   src/styles/global.scss 5:9                           root stylesheet

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

Expected behavior

No warnings in build output

@jgthms
Copy link
Owner

jgthms commented Jun 21, 2021

This has been fixed in 0.9.3 released last week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants