xc_ui_portal运行失败

◇◆丶佛笑我妖孽 提交于 2020-03-26 15:03:47

错误: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
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!