Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dar

Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

npm run dev后 出现以下警告

Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dar_第1张图片

因为 sass 新版本目前弃用“/”的用法,sass自定义element theme时会报warnning

解决:

  1. npm install -g sass-migrator
  2. 进入项目node_modules文件
  3. 执行sass-migrator division **/*.scss

你可能感兴趣的:(vue,css,sass,前端,css)