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

【解决】
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.【解决】Syntax Error: TypeError: eslint.CLIEngine is not a constructor_第1张图片

有用的话麻烦点个赞,谢谢啦!^v^

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

【解决】Syntax Error: TypeError: eslint.CLIEngine is not a constructor_第2张图片
删除后本项目的eslint语法校验会失效,即可运行成功(需重新npm run serve)
【解决】Syntax Error: TypeError: eslint.CLIEngine is not a constructor_第3张图片

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

【解决】Syntax Error: TypeError: eslint.CLIEngine is not a constructor_第4张图片

你可能感兴趣的:(前端,环境配置,vue,vue-cli3,eslint)