运行项目时报以下错误:
:Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($px, $screenWidth)
More info and automated migrator: https://sass-lang.com/d/slash-div
官方还很贴心做了一个一键迁移的工具,执行下面两行命令,就自动把你项目里面的东西替换了
npm install -g sass-migrator
sass-migrator division **/*.scss