轉載: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加入以下代碼