【解决】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加入以下代码

 

posted @ 2021-12-16 10:44  狂奔的狼  阅读(5290)  评论(0编辑  收藏  举报