Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parsing error: No Babel config file detected

I'm trying to create a project in vue. But I get this problem after I create a project.

Parsing error: No Babel config file detected for C:\\HotelManagmet\clienthotel\babel.config.js. Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files. I can not solve it, I have tried to reinstall node.js and visual studio code but the problem remains. Have tried running npm audit fix --force but unfortunately the result is the same. Anyone know what it could be?

like image 983
Daniel Avatar asked Aug 31 '25 01:08

Daniel


1 Answers

I had the same issue and this change fixed the issue. In your .eslintrc.js file, add requireConfigFile: false

parserOptions: {
  parser: '@babel/eslint-parser',
  requireConfigFile: false, // <== ADD THIS
  ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
  sourceType: 'module' // Allows for the use of imports
}
like image 184
pradeep Avatar answered Sep 02 '25 17:09

pradeep