Dart SASS deprecating slash for division

1 Answer 1182 Views
General Discussions Styling / Themes
Bryce
Top achievements
Rank 1
Bryce asked on 24 May 2022, 05:34 PM

I'm getting a handful of these errors and it causes issues with automated testing/build pipelines. 

Example:

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

Recommendation: math.div($drop-hint-arrow-size, 2) or calc($drop-hint-arrow-size / 2)

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

I could fix them easily, but I'd rather leave the NPM packages as we received them. Are there plans to update the SCSS files for Kendo UI Vue to support the latest library expectations?

1 Answer, 1 is accepted

Sort by
1
Dimitar
Telerik team
answered on 27 May 2022, 10:41 AM

Hello Bryce,

The reported scenario is actually not an error, but a warning about upcoming breaking changes that are scheduled to be released with version 2.0 of the dart-sass compiler. We will be able to target and fix those warning when the breaking changes are released in dart-sass.

You can track the following pinned issue in the themes repository regarding this:

Additional information regarding the expected change in sass can be found here:

The warnings will not lead to a failing build. However,  by utilizing the quietDeps flag, those warnings should be supressed.

I hope this helps.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Bryce
Top achievements
Rank 1
commented on 27 May 2022, 03:10 PM

Thanks for your reply. As long as it's on the road map that's my primary concern. 

Also, you're correct, the build won't fail. However, it DOES cause it not to pass our internal test processes.

In my experience suppressing warnings is always a bad idea when building projects at scale. So we'll either live with it for the time being or fork and fix it.

Tags
General Discussions Styling / Themes
Asked by
Bryce
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or