当前位置:   article > 正文

SourceTree提交vue前端代码报错git -c diff.mnemonicprefix=false -c core.quotepath=false commit -q -F C:\Users\

git -c diff.mnemonicprefix=false -c core.quotepath=false commit -q -f c:\use

完整报错如下:

  1. git -c diff.mnemonicprefix=false -c core.quotepath=false commit -q -F C:\Users\honry.guan\AppData\Local\Temp\ljl3tx0i.sms
  2. husky > pre-commit (node v12.10.0)
  3. Stashing changes... [started]
  4. Stashing changes... [skipped]
  5. No partially staged files found...
  6. Running linters... [started]
  7. Running tasks for src/**/*.{js,vue} [started]
  8. eslint --fix [started]
  9. eslint --fix [failed]
  10. Running tasks for src/**/*.{js,vue} [failed]
  11. Running linters... [failed]
  12. × eslint --fix found some errors. Please fix them and try committing again.
  13. D:\Fj-code\fj_seva_manage\src\views\equipmentManage\cowsManage.vue
  14. 342:99 error 'exportCattleCollar' is defined but never used no-unused-vars
  15. 1 problem (1 error, 0 warnings)
  16. husky > pre-commit hook failed (add --no-verify to bypass)
  17. 完成时带有错误,见上文。

报错截图:从截图中能够看出来cowsManage.vue引入了一个exportCattleCollar方法,但是没有使用导致的报错,删除掉这个import就能正常提交了

 解决:从截图中能够看出来cowsManage.vue引入了一个exportCattleCollar方法,但是没有使用导致的报错,删除掉这个import就能正常提交了

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/443500
推荐阅读
相关标签
  

闽ICP备14008679号