天天速读:vue3报错 ERROR Failed to compile with 1 errorYou may use special comments to disab
2023-04-05 15:21:28来源:腾讯云
(资料图片)
问题描述
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,})
关键词:





海外需求增长持续拉动我国纺织服装产品出口
南宁铁路公安“寻包达人”两年收到旅客锦旗116面
齐齐哈尔市龙江县警方破获一涉案200余万元的“帮信”案件
北京市新增本土确诊病例7例、无症状感染者2例
浙江东阳警方通报:剧组因拍摄致猫死亡等事实不成立
天津大学留学生志愿者:同天津人民一起守护共同的家园
永远意气风发!平均年龄62岁的教授合唱团重阳节唱响
我国首颗太阳探测科学技术试验卫星“羲和号”成功发射
人社部副部长李忠:加强对中小微企业的服务 营造鼓励创新氛围
中国驻俄使馆与新疆维吾尔自治区政府共同举办“新疆是个











