Parsing error: No Babel config file detected for XXX
In projects created with Vue scaffolding, the first line of each file in the project will have a red wavy line.
Solution:
find the package.json file in the project file, add "requireConfigFile": false
in parserOptions
, and you can solve the problem of red wavy lines.
"parserOptions": {
"parser": "@babel/eslint-parser",
"requireConfigFile":false
},
Through the above operations, the problem can be solved!
Read More:
- [Solved] Vue Error: Parsing error:No Babel config file detected for xxx
- [Solved] Vue Error: Parsing error: No Babel config file detected for /Users/Usename/xxx…
- [Solved] Vue Error: Parsing error: No Babel config file detected for
- When using iView, report: no parsing error parsing error: x-invalid-end-tag solution
- [Solved] electron Package and Startup Error: Error: ENOENT: no such file or directory, open ‘xxx/manifest.json‘‘
- [Solved] Vue Error: Module build failed: Error: No PostCSS Config found in
- [Solved] vue Project Error: react lazy eslint error Parsing error: Unexpected token import
- [Solved] ESLint: Parsing error: Unexpected token(prettier/prettier)
- [Solved] Syntax Error: Error: Cannot find module ‘@vue/babel-preset-app‘
- [Solved] Yapi Secondary deploy error: xxx validation failed: mock: Path `xxx` is required
- [Solved] This dependency was not found: * core-js/modules/es.error.cause.js in ./node_modules/_@babel_runtim
- Error: Duplicate plugin/preset detected [How to Solve]
- [Solved] Failed to load config “prettier“ to extend from.?
- Parsing error:x-invalid-end-tag [How to Solve]
- OTS parsing error: invalid version tag [How to Solve]
- Parsing error: await is a reserved word [How to Solve]
- [Solved] Eslint Error: Parsing error: x-invalid-end-tag
- Vue Error: [Vue warn]: Duplicate keys detected
- [Solved] Failed to load config “react-app“ to extend from.
- When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error resolution