请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

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

[!] (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回答

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

0 回复 有任何疑惑可以回复我~
  • 提问者 Yitea #1
    老师,现在build成功,但是没有动画效果了,无法实现环形进度条
    <style lang="css" scoped>
    .container svg {
        border: 1px solid #000;
    }
    
    .circle {
      animation: circle 5s linear infinite;
      -webkit-animation:circle 5s linear infinite; /* Safari 和 Chrome */
    }
    
    @keyframes circle {
      from{
        stroke-dasharray: 0 1257;
      }
      to{
        stroke-dasharray: 1257 0;
      }
    }
    @-webkit-keyframes circle {
      from{
        stroke-dasharray: 0 1257;
      }
      to{
        stroke-dasharray: 1257 0;
      }
    }
    </style>
    回复 有任何疑惑可以回复我~ 2021-03-19 15:38:40
  • 扬_灵 回复 提问者 Yitea #2
    修改@vue/compiler-sfc版本为 "@vue/compiler-sfc": "3.0.0-beta.18",
    回复 有任何疑惑可以回复我~ 2021-03-19 16:13:19
  • 提问者 Yitea 回复 扬_灵 #3
    问题已解决,谢谢老师!
    回复 有任何疑惑可以回复我~ 2021-03-19 16:28:35

相似问题

登录后可查看更多问答,登录/注册

问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号