Vue项目中,每个文件开头都报下面的错误:
提示:Parsing error: No Babel config file detected for xxx. Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files.eslint

解决方法:
在package.json文件中的"parserOptions"中加入"requireConfigFile": false即可。

本文解决了Vue项目中由于未找到Babel配置文件而导致的解析错误。通过在package.json文件的parserOptions中设置requireConfigFile: false来禁用配置文件检查,从而消除错误。
2309

被折叠的 条评论
为什么被折叠?



