xc_ui_portal运行失败

错误:No parser and no filepath given, using 'babel' the parser now but this will throw an error in t he f

原因:vue-loader的版本没跟上其他包的版本导致解析器不运行

解决办法:

  • 找到modules包里面的:node_modules\vue-loader\lib\template-compiler\index.js
  • 找到if (!isProduction) { code = prettier.format(code, { semi: false}) }
  • 替换为if (!isProduction) { code = prettier.format(code, { semi: false, parser: 'babel' }) }
    重新run ,ok

猜你喜欢

转载自www.cnblogs.com/hellosiyu/p/12573878.html
xc