npm run build时,报错(plugin postcss) Error: expected no more input.

来源:13-3 svg + CSS 动画实战:环形进度条

Yitea

2021-03-19

[!] (plugin postcss) Error: expected no more input.
   ╷
11 │ from[data-v-5a151e4f]{
   │     ^
   ╵
  src\components\SvgAnimation\SvgAnimation.vue?vue&type=style&index=0&id=5a151e4f&scoped=true&lang.scss 11:5  root stylesheet     
src\components\SvgAnimation\SvgAnimation.vue?vue&type=style&index=0&id=5a151e4f&scoped=true&lang.scss
Error: expected no more input.
@keyframes circle {
  from{
    stroke-dasharray: 0 1257;
  }
  to{
    stroke-dasharray: 1257 0;
  }
}

老师,请问为什么会出现这种问题呐?项目地址:https://github.com/mingSummer/datav-libs-dev

写回答

1回答

扬_灵

2021-03-19

同学你好,你可以先把lang="scss"改成css模式,把里面的scss语法改css语法。

0
3
Yitea
回复
扬_灵
问题已解决,谢谢老师!
2021-03-19
共3条回复

数据可视化入门到精通-打造前端差异化竞争力

同级别前端,掌握数据可视化薪资更高

1520 学习 · 1043 问题

查看课程