Skip to content

Syntax Error: TypeError: eslint.CLIEngine is not a constructor

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.

Image text

解决办法:

第一种:在package.json文件里,删除"@vue/cli-plugin-eslint": "~4.5.0"插件,重新运行项目

第二种:打开vue.config.js加入以下代码

Image text

如有转载或 CV 的请标注本站原文地址