关于VUE3.0中的ERROR Failed to compile with error报错 关闭掉eslint严格格式

ERROR Failed to compile with 1 error 下午7:08:39

error in ./src/components/Shop.vue

Module Error (from ./node_modules/eslint-loader/index.js):

C:\Users\taoyu\Desktop\jingdongmodel\src\components\Shop.vue

15:1 error Expected indentation of 2 spaces but found 4 indent

15:10 error Missing space before value for key ‘name’ key-spacing

16:1 error Expected indentation of 2 spaces but found 4 indent

16:5 error Extra space after key ‘props’ key-spacing

16:14 error There should be no space after ‘[’ array-bracket-spacing

16:21 error There should be no space before ‘]’ array-bracket-spacing

17:1 error Expected indentation of 2 spaces but found 4 indent

17:10 error Missing space before function parentheses space-before-function-paren

18:1 error Trailing spaces not allowed no-trailing-spaces

19:1 error Expected indentation of 2 spaces but found 4 indent

19:6 error Unexpected trailing co

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
ERROR Failed to compile with 1 error误信息表明编译过程出现了一个误。根据引用的警告信息,这个误可能是在主文件(main.js)的某一行代码发生的。要解决这个误,我们需要查看具体的误信息。 在引用提到,当在Vue项目安装了less和less-loader后,重启服务时可能会出现。这个可能是由于less版本过高导致的。解决方法是降低less版本为合适的版本。 另外,引用提到了一个Vue项目出现的误,误信息为"Component name 'xxxx' should always be multi-word vue/multi-word-comp"。解决这个误的方法是给组件名添加多个单词。 综上所述,如果你遇到了ERROR Failed to compile with 1 error误,请先查看具体的误信息并尝试根据误信息解决问题。另外,如果你在Vue项目遇到了Component name的误,请尝试给组件名添加多个单词。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [ERROR Failed to compile with 1 error](https://blog.csdn.net/lv_suri/article/details/126219408)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [解决vue安装lessFailed to compile with 1 errors的问题](https://download.csdn.net/download/weixin_38667581/14671803)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值