Wikiki / bulma-slider

Bulma's extension to display sliders
MIT License
48 stars 35 forks source link

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

Closed tonprince closed 2 years ago

tonprince commented 3 years ago

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