element icon indicating copy to clipboard operation
element copied to clipboard

[Bug Report] Dart-Sass Deprecation Warning: Using / for division outside of calc()

Open JayBit33 opened this issue 2 years ago • 21 comments

Element UI version

2.15.6

OS/Browsers version

Compile Time Error

Vue version

2.6.14

Dart Sass

"sass": "^1.49.7",

Reproduction Link

https://codepen.io/ziyoung/pen/LKNBqB?editors=1111

Steps to reproduce

I cannot produce with jsfiddle or codepen because I cannot make it compile with dart-sass. Run any code using elementui with dart-saas. Error is referencing elementui core library code. using Division outside of calc() is present in multiple files. Dart-Sass Error is

Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0. Recommendation: math.div($--tooltip-arrow-size, 2) or calc($--tooltip-arrow-size / 2)
More info and automated migrator: https://sass-lang.com/d/slash-div 89 margin-bottom: #{$--tooltip-arrow-size / 2};

You can use the Sass migrator to automatically update your stylesheets to use math.div() and list.slash().

$ npm install -g sass-migrator $ sass-migrator division **/*.scss

What is Expected?

The code is currently working however I wanted to make you aware that it will no longer work with dart-sass as of version 2. (Dart-Sass 2). Any place you have division in your styles will need updated to use calc(). I ABSOLUTELY love ElementUI!!!! I would hate to have to discontinue using it down the road due to incompatibility issues.

What is actually happening?

Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0. Recommendation: math.div($--tooltip-arrow-size, 2) or calc($--tooltip-arrow-size / 2)
More info and automated migrator: https://sass-lang.com/d/slash-div 89 margin-bottom: #{$--tooltip-arrow-size / 2};

JayBit33 avatar Feb 05 '22 18:02 JayBit33

You can downgrade to sass@~1.32 The warnings disappears

ghost avatar Feb 10 '22 11:02 ghost

This has been fixed in element-ui v2.15.7

dessskris avatar Feb 17 '22 14:02 dessskris

This has been fixed in element-ui v2.15.7

The fix has been reversed in v2.15.8. :(

dotmartin avatar May 06 '22 05:05 dotmartin

use sass.Logger.silent to avoid this warning

toesbieya avatar May 13 '22 01:05 toesbieya

最最新的版本2.15.10还有,俺真的服了

chengfengfengwang avatar Sep 16 '22 04:09 chengfengfengwang

any news?

jinxinkai avatar Sep 20 '22 20:09 jinxinkai

等待一个修复

Krue1 avatar Sep 26 '22 13:09 Krue1

this update occurred some compatibility problems, so reversed in v2.15.8, will be fixed in v2.16.0 soon

xinguanhua avatar Sep 27 '22 02:09 xinguanhua

1

UniqueCrownClown avatar Nov 08 '22 08:11 UniqueCrownClown

this update occurred some compatibility problems, so reversed in v2.15.8, will be fixed in v2.16.0 soon

@xinguanhua: What is the status of this? It is currently blocking us from updating Element UI.

dotmartin avatar Dec 01 '22 10:12 dotmartin

最最新的版本2.15.12还有

lixsh8 avatar Dec 02 '22 01:12 lixsh8

this update occurred some compatibility problems, so reversed in v2.15.8, will be fixed in v2.16.0 soon

@xinguanhua What is the status of this?My team stopped updating after upgrading to v2.15.7

CavidDavidest avatar Dec 11 '22 13:12 CavidDavidest

It's been over a year. My team is rolling off ElementUI. Seems like vuetify is the way to go now-a-days.

sam-araiza avatar May 09 '23 23:05 sam-araiza

This has been fixed in element-ui v2.15.7

The fix has been reversed in v2.15.8. :(

This has been reversed in element-ui v2.15.13 :(

rirh avatar Jun 21 '23 06:06 rirh

The same problem has arisen . element-ui 2.15.13 + dark-sass

Lnncoco avatar Aug 22 '23 03:08 Lnncoco

this update occurred some compatibility problems, so reversed in v2.15.8, will be fixed in v2.16.0 soon

waiting...

zhatongning avatar Dec 21 '23 07:12 zhatongning

It’s already 2024 and this problem still exists.

y4n6 avatar Jan 08 '24 06:01 y4n6

很失望,这么久了

yizixu avatar Jan 15 '24 01:01 yizixu

this update occurred some compatibility problems, so reversed in v2.15.8, will be fixed in v2.16.0 soon

still waiting

simpleoo0o avatar Feb 27 '24 08:02 simpleoo0o

仍然存在,有人干活吗

SoftwareEngineerPalace avatar Mar 10 '24 04:03 SoftwareEngineerPalace

waka, 仍仍然存在。

frey1258 avatar Apr 24 '24 07:04 frey1258