【记录解决遇到的问题】ERROR Failed to compile with 1 error

遇到问题:

ERROR  Failed to compile with 1 error                                                                         上午10:30:14

[eslint]
C:\Users\Administrator\Desktop\后台管理页面\one-project\src\App.vue
  15:8  error  'HelloWorld' is defined but never used  no-unused-vars

✖ 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\Administrator\Desktop\后台管理页面\one-project\src\App.vue
  15:8  error  'HelloWorld' is defined but never used  no-unused-vars

✖ 1 problem (1 error, 0 warnings)


webpack compiled with 1 error

解决方法:

第一步:选中并打开"vue.config.js"

 第二步:输入"lintOnSave:false"来关闭eslint校验

最后:执行命令 "npm run serve"

  • 13
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值