【解决】Syntax Error: TypeError: eslint.CLIEngine is not a constructor


转载:https://blog.csdn.net/weixin_43928774/article/details/120805055

【解决】
ERROR Failed to compile with 1 error
Syntax Error: TypeError: eslint.CLIEngine is not a constructor
解决!

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.

 

方式一:打开package.json将以下代码删除重新运行(将项目停掉,重新npm run serve)

 

 

 

 

方式二:打开vue.config.js加入以下代码

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM