问题阐述

在VUE项目中遇到以下报错: Cannot read property ‘version’ of undefined

TypeError: Cannot read property ‘version’ of undefined
at module.exports (E:\Mirror\Projects\webStorm\captcha\node_modules@vue\cli-plugin-eslint\index.js:21:2

如图:

1.png

解决方式

  1. 首先控制台卸载eslint :
npm uninstall eslint --save 
javascript
  1. 卸载之后再去package.json文件里删除"@vue/cli-plugin-eslint": “~4.5.0”,这句代码就OK了

那么以后记得创建项目避开ESlint

打赏
  • 微信
  • 支付宝
评论
来发评论吧~
···

歌手: