Dart SASS warnings from kendo-theme-default

2 Answers 112 Views
Alex
Top achievements
Rank 1
Veteran
Iron
Iron
Alex asked on 01 Jun 2021, 08:30 PM | edited on 02 Jun 2021, 08:33 PM

Hello,

I am using kendo-theme-default 4.38.1 and get a lot of deprecated warnings from Dart SASS.  I've put an example warning below. Is there a workaround to prevent kendo-theme-default from causing all of these warnings?

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

Recommendation: math.div($button-padding-x, 2)

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

   ╷
20 │ $button-padding-x-sm: $button-padding-x / 2 !default;
   │                       ^^^^^^^^^^^^^^^^^^^^^
   ╵
    node_modules\@progress\kendo-theme-default\scss\button\_variables.scss 20:23  @import
    src\styles\_common.scss 5:9                                                   @import
    stdin 1:9   

 

There is a --quiet-deps command line option. I've attempted to add this to vue.config.js (see below), which is what's used to configure sass-loader. Unfortunately, I can't tell if I have it configured the right way or whether --quiet-deps will actually do what I want.


module.exports = {
  // ...
  css: {
    loaderOptions: {
      sass: {
        prependData: '@import "~@/styles/common";',
        sassOptions: {
          quietDeps: true
        }
      }
    }
  }
}

 

2 Answers, 1 is accepted

Sort by
0
Alex
Top achievements
Rank 1
Veteran
Iron
Iron
answered on 03 Jun 2021, 06:11 PM
There is an open issue for the warnings generated by the Kendo themes, so I will wait on that update. I would still like to know how to disable warnings from third party code, but that isn't a Vue specific question.
0
Neli
Telerik team
answered on 04 Jun 2021, 10:11 AM

Hi Alex,

As you mentioned there is a logged issue about the 'Deprecated / for division use in SASS themes' warning. I am afraid that currently, I could not suggest a possible workaround for avoiding the warning to appear.

Regards,
Neli
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.

Asked by
Alex
Top achievements
Rank 1
Veteran
Iron
Iron
Answers by
Alex
Top achievements
Rank 1
Veteran
Iron
Iron
Neli
Telerik team
Share this question
or