在vscode写vue时首行总是报错:Parsing error: No Babel config file detected for... Either disable config file checking with requlreconfigFile: false, or configure Babel so that it can find the config files.
如果你也是如下错误,只需要一行"requireConfigFile": false就能解决
一般是在这两个文件中找到再配置
以下是解决方案
"requireConfigFile": false 告诉 ESLint 不需要一个单独的配置文件来运行。这样可以简化项目的配置,尤其是在使用一些预设或默认配置时。
//在package.json文件加上这一句就可以了
,
"parserOptions": {
"parser": "@babel/eslint-parser",
"requireConfigFile": false
}