汇能网 >油气>天然气>

vue3报错 ERROR Failed to compile with 1 errorYou may use special comments to disab|每日观点

2023-04-06 08:22:51 来源:腾讯云


(资料图)

问题描述

ERROR  Failed to compile with 1 error                                                                                                                                                                  16:17:24[eslint]C:\Users\xuhuichen\Desktop\gpyh-ec-wx-front\src\components\a1.vue  1:1  error  Component name "a1" should always be multi-word  vue/multi-word-component-names✖ 1 problem (1 error, 0 warnings)You may use special comments to disable some warnings.Use // eslint-disable-next-line to ignore the next line.Use /* eslint-disable */ to ignore all warnings in a file.ERROR in [eslint]C:\Users\xuhuichen\Desktop\gpyh-ec-wx-front\src\components\a1.vue  1:1  error  Component name "a1" should always be multi-word  vue/multi-word-component-names✖ 1 problem (1 error, 0 warnings)

解决方法

思路

这么多错 全都是因为eslint严格格式

关闭eslint严格格式就好

方法

直接在根目录下创建vue.config.js文件,关键代码lintOnSave: false,

const { defineConfig } = require("@vue/cli-service")module.exports = defineConfig({  lintOnSave: false,})
责任编辑:
相关新闻
回到首页 回到顶部

关于我们 | 联系方式 | 征稿启事 | 广告服务 | 百度地图 |

本网站由汇能网版权所有,未经授权禁止复制或建立镜像  粤ICP备2022077823号-2

信箱:317493128@qq.co m 媒体合作QQ:317493128

电子商务协会 360安全认证 网络报警平台 不良举报中心 中国文明网 无线互联网
1999-2020 www.huineng.042.net All Rights Reserved