Vue项目报错: parser: "babylon" } is deprecated; we now treat it as { parser: "babel"

解决方法

找到/node_modules/vue-loader/lib/template-compiler/index.js, 然后修改代码

解决方法

   if (!isProduction) {
      code = prettier.format(code, { semi: false, parser: 'babylon' })
    }
    //babylon改为babel
 if (!isProduction) {
      code = prettier.format(code, { semi: false, parser: 'babel' })
}

你可能感兴趣的:(Vue项目报错: parser: "babylon" } is deprecated; we now treat it as { parser: "babel")