其他分享
首页 > 其他分享> > DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.

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

作者:互联网

在scss中使用“/”报这个错误:

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

解决方法:查看官方文档

@use "sass:math";

// WRONG, will not work in future Sass versions.
@debug (12px/4px); // 3

// RIGHT, will work in future Sass versions.
@debug math.div(12px, 4px); // 3

标签:DEPRECATION,12px,Sass,Dart,will,WARNING,2.0
来源: https://blog.csdn.net/woshissss/article/details/120928327