当前位置:   article > 正文

element ui 升级2.15.7升级时报错_src\assets\styles\element-variables.scss 25:9 root

src\assets\styles\element-variables.scss 25:9 root stylesheet
  1. - Building for production...
  2. ERROR Failed to compile with 1 error1:49:30 AM
  3. error in ./src/assets/styles/element-variables.scss
  4. $--group-option-flex: 0 0 math.div(1, 5) * 100% !default;
  5. ^
  6. Undefined function.
  7. 490 │ $--group-option-flex: 0 0 math.div(1, 5) * 100% !default;
  8. │ ^^^^^^^^^^^^^^
  9. node_modules/element-ui/packages/theme-chalk/src/common/var.scss 490:27 @import
  10. node_modules/element-ui/packages/theme-chalk/src/common/transition.scss 1:9 @import
  11. node_modules/element-ui/packages/theme-chalk/src/base.scss 1:9 @import
  12. node_modules/element-ui/packages/theme-chalk/src/index.scss 1:9 @import
  13. stdin 25:9 root stylesheet
  14. in /usr/local/jenkins/workspace/transport-cloud-web/node_modules/element-ui/packages/theme-chalk/src/common/var.scss (line 490, column 27)

只要把node_modules文件夹删除掉,package-lock.json删除掉升级打包下载就可以了

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/82277
推荐阅读