zoukankan      html  css  js  c++  java
  • semantic-ui使用gulp执行build-css报错

    1.执行gulp build-css报错

    [09:40:49] Starting 'build-css'...
    Building CSS
    Potentially unhandled rejection [2] TypeError: Cannot call method 'match' of und
    efined
    at DestroyableTransform.module.exports.settings.plumber.less.errorHandler (E
    :devtools
    odejs4
    ode_modulessemantic-ui	asksconfig	asks.js:92:29)

    2.找到devtools odejs4 ode_modulessemantic-ui asksconfig asks.js:92行代码为

      if(error.filename.match(/theme.less/)) {

      从错误提示可以看出error.filename没有match方法,修改代码将error打印出来,

      console.error(error);
      console.error(error.filename);
    
    [09:40:49] Starting 'build-css'...
    
    Building CSS
    [Error: no writecb in Transform class]
    undefined
    Potentially unhandled rejection [2] TypeError: Cannot call method 'match' of und
    efined
    at DestroyableTransform.module.exports.settings.plumber.less.errorHandler (E
    :devtools
    odejs4
    ode_modulessemantic-ui	asksconfig	asks.js:94:29)
    

      从输出日志可以看出error.filename为underfined,而no writecb in Transform class。。。

      进一步得知no writecb...错误是nodejs抛出的错误。

    事实证明是bug, Installing gulp-autoprefixer@2.3.1 fixed it。

    岁月留痕
  • 相关阅读:
    VC2013一些感受
    第三周 分析程序题
    进度条——持续更新
    怪自己,不怪书
    源程序版本管理软件和项目管理软件
    学习进度条
    个人最终总结
    win8以上windows系统eclipse环境下图片显示乱码问题解决
    黄金点游戏
    编码用命令行执行的C语言词语统计程序
  • 原文地址:https://www.cnblogs.com/navigate/p/5274641.html
Copyright © 2011-2022 走看看