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 Project Error: react lazy eslint error Parsing error: Unexpected token import
- How to Solve VUE Error: Mixed spaces and tabs
- [Solved] error: Unexpected console statement (no-console)
- [Solved] ESLint: Parsing error: Unexpected token(prettier/prettier)
- [Solved] Vue Error: Parsing error: No Babel config file detected for /Users/Usename/xxx…
- [Vue Run Error] Module build failed: Error: Couldn‘t resolve parser “babylon“
- [Solved] Syntax Error: Error: No ESLint configuration found & TypeError: eslint.CLIEngine is not a constructor
- [Solved] Vue eslint Error: Component name “*****“ should always be multi-word
- [Solved] Vue2.0 Error: Syntax Error: TypeError: eslint.CLIEngine is not a constructor
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- [Solved] Install The Latest Version of Jest Error: TypeError: Cannot read property ‘instrument‘ of undefined
- [Solved] Vue Project startup error: no eslint configuration found
- [Solved] Vue Error: error ‘xxx‘ is defined but never used no-unused-vars
- [Solved] SyntaxError: Cannot use import statement outside a module
- [Solved] Vue item error: Regeneratorruntime is not defined
- [Solved] Failed to load config “prettier“ to extend from.?
- [Solved] Eslint Error: Parsing error: x-invalid-end-tag
- Vue Install less Error: While resolving: [email protected]
- How to Solveb Vue3 defineProps Error
- [Solved] nodejs Error: request entity too large