【解決】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