eslint reports an error: Parsing error: No Babel config file detected . Don't add requireConfigFile": false anymore!

        

         I saw someone on the Internet saying that the solution is to configure requireConfigFile: false, which essentially tells eslint that I don’t need to find this configuration file for me, but I continued to check the information and saw that some bloggers said that this is only superficially true. This error can be solved , but what you wrote in the babel configuration file will be invalid. Later, I checked other information to solve this error.

        Go directly to the solution : reopen the project with an editor, and let your project open as the root directory. That is to say, if you don't want to run it, add another layer of folders, and you need to cd into it to run it.

        Reason: Babel's configuration file is searched in the root directory by default [the official website has said], and the directory opened by the editor is not the directory where the project is currently running

Guess you like

Origin blog.csdn.net/m0_71981318/article/details/126658900