Home > Software engineering >  Parsing error: No Babel config file detected
Parsing error: No Babel config file detected

Time:03-17

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?

CodePudding user response:

In your terminal, run npm install. Then, replace your babel.config.js contents with below:

  "presets": [
    "@vue/cli-plugin-babel/preset"
  ]
}
  • Related