Warning when using dart sass...

Post Reply
nclemeur
Posts: 3
Joined: 17 Mar 2021, 08:25

16 Jun 2021, 07:04

Hello,

I am using dart sass (https://github.com/sass/dart-sass) for my sass preprocessing and I started to have the following deprecation warnings:

Code: Select all

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

Recommendation: math.div(nth($inputPadding, 1), 2)

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

Any plan to fix them?

tugce.kucukoglu
Posts: 143
Joined: 23 Oct 2020, 09:28

16 Jun 2021, 09:14

Hi,

Ultima-Vue is written with Node-Sass rules, in short term we don't have any plan to change it to Dart-Sass.

There is nth($inputPadding, 1) function only in _mixin.scss and of course I don't know your scss files but you can make minor changes by following the warnings.

Best,

nclemeur
Posts: 3
Joined: 17 Mar 2021, 08:25

17 Jun 2021, 01:19

I am not a sass expert, but I believe the warning are there to show a deprecated use of a sass feature, so it would be good to not use deprecated features. In addition, it seems node-sass it-self is deprecated (see https://github.com/sass/node-sass) and dart-sass is recommended on their web site...

BTW, the problem is not the

Code: Select all

nth($inputPadding, 1)
, but rather the use of the '/' as a division operator and should be replaced by math.div

So please consider fixing these warnings (I know I can do it my-self and I have done it, it's not a big job at all) and moving to dart-sass as recommended on the node-sass web site.

tugce.kucukoglu
Posts: 143
Joined: 23 Oct 2020, 09:28

17 Jun 2021, 10:21

It may be deprecated, but many project still use it. We need to discuss this within the team.

Thanks,

nclemeur
Posts: 3
Joined: 17 Mar 2021, 08:25

17 Jun 2021, 14:21

Again this has nothing to do with node-sass or dart-sass, this is a deprecated feature of the "sass language". Now, node-sass does not seems to emit a warning while dart-sass does... And replacing node-sass by dart-sass is just one line change in the package.json... Please check this post: https://sass-lang.com/documentation/bre ... /slash-div

tugce.kucukoglu
Posts: 143
Joined: 23 Oct 2020, 09:28

17 Jun 2021, 16:51

Thanks for the post link. I'll fixed it for next version.

Post Reply

Return to “Ultima - PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests