Getting the same issue but given an hour on it get the solution When we run npm start then you got this kind of an error that is version related issues for this issue. Go to node_modules folder:

Project->node_modules->react-scripts->package.json

check the package.json file

there you got : "babel-loader": "8.0.4" first remove : babel-loader folder for Project->node_modules->babel-loader and then run npm i [email protected] (it is depend on your version you can change it like : npm i [email protected]) after that may be you got webpack issue then follow same thing remvoe webpack from "Project->node_modules->webpack" and reinstall npm i [email protected]

4.19.1* webpack's version it may be change..

Answer from Rawan-25 on Stack Overflow
🌐
DEV Community
dev.to › shivampawar › setup-webpack-and-babel-for-a-react-js-application-24f5
Setup Webpack And Babel for a React JS Application - DEV Community
April 16, 2022 - babel-loader: Loader will transpiles the react JSX code in backward compatible js code with the help of babel and webpack.
🌐
Medium
medium.com › age-of-awareness › setup-react-with-webpack-and-babel-5114a14a47e9
Setup react with webpack and babel | by Prateek Srivastava | Age of Awareness | Medium
December 16, 2022 - Here we are installing @babel/core which is the core transpiler. Then we have babel-loader which is a webpack loader that will help webpack to use babel transpiler.
Discussions

Circular errors about babel-loader when trying to launch app
Can you share the content of your package.json file? More on reddit.com
🌐 r/reactjs
7
2
May 11, 2022
webpack babel loader fails to compile jsx
We can install the babel loader with the following command: ... I'm getting the same error and I was wondering if you ever got this sorted out. I am not following the same tutorial. ... You need babel presets to compile react and other ES6, ES7 features. More on stackoverflow.com
🌐 stackoverflow.com
Issue while creating build for React JS Application
Creating an optimized production build... Failed to compile. ./node_modules/ml-matrix/src/symmetricMatrix.js 7:2 Module parse failed: Unexpected character '#' (7:2) File was processed with these loaders: ./node_modules/babel-loader/lib/i... More on github.com
🌐 github.com
7
December 4, 2023
reactjs - babel-loader not working, Unexpected token '<' - Stack Overflow
babel-loader babel-core babel-preset-env babel-preset-react More on stackoverflow.com
🌐 stackoverflow.com
July 29, 2020
🌐
Reddit
reddit.com › r/reactjs › circular errors about babel-loader when trying to launch app
r/reactjs on Reddit: Circular errors about babel-loader when trying to launch app
May 11, 2022 -

When I run yarn dev I get the error that:

> ERROR in Entry module not found: Error: Can't resolve 'babel-loader' in...

Following this answer, I manually installed balel loader as a dev dependency. But then when I run yarn dev I get this:

Don't try to install it manually: your package manager does it automatically.

However, a different version of babel-loader was detected higher up in the tree:

C:\Users\****\Sync\dev\myproject\node_modules\babel-loader (version: 8.2.5)

Manually installing incompatible versions is known to cause hard-to-debug issues.

If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.

That will permanently disable this message but you might encounter other issues.

To fix the dependency tree, try following the steps below in the exact order:

  1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.

  2. Delete node_modules in your project folder.

  3. Remove "babel-loader" from dependencies and/or devDependencies in the package.json file in your project folder.

  4. Run npm install or yarn, depending on the package manager you use.

I go through those 4 steps, then run yarn dev again, and I get the first error again.

Anyone know what's going? Why isn't babel-loader being auto-installed as a dependency? (I checked in /node_modules and it's not there.)

Thanks very much in advance.

[ --- EDIT --- ]

package.json as follows:

{
  "name": "foo",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@babel/runtime": "^7.15.4",
    "@fortawesome/fontawesome-svg-core": "^1.2.35",
    "@fortawesome/free-brands-svg-icons": "^5.15.4",
    "@fortawesome/free-regular-svg-icons": "^5.15.4",
    "@fortawesome/free-solid-svg-icons": "^5.15.3",
    "@fortawesome/react-fontawesome": "^0.1.14",
    "@primer/octicons-react": "^13.0.0",
    "@testing-library/jest-dom": "^5.14.1",
    "@testing-library/react": "^11.2.7",
    "@testing-library/user-event": "^12.8.3",
    "axios": "^0.21.1",
    "axios-auth-refresh": "^3.2.1",
    "core-js": "^3.15.2",
    "express": "^4.17.1",
    "express-favicon": "^2.0.1",
    "js-cookie": "^2.2.1",
    "moment": "^2.29.1",
    "prop-types": "^15.7.2",
    "query-string": "^7.0.1",
    "rc-table": "^7.17.1",
    "react": "^17.0.2",
    "react-beautiful-dnd": "^13.1.0",
    "react-collapse": "^5.1.0",
    "react-confirm-alert": "^2.7.0",
    "react-country-flag": "^2.3.1",
    "react-date-picker": "^8.2.0",
    "react-dates": "^21.8.0",
    "react-dom": "^17.0.2",
    "react-dotdotdot": "^1.3.1",
    "react-hook-form": "^7.17.1",
    "react-https-redirect": "^1.1.0",
    "react-loading": "^2.0.3",
    "react-modal": "^3.14.3",
    "react-paginate": "^7.1.3",
    "react-redux": "^7.2.4",
    "react-router-dom": "^5.2.0",
    "react-scripts": "^4.0.3",
    "react-select": "^4.3.1",
    "react-tabs": "^3.2.2",
    "recharts": "^2.0.10",
    "redux": "^4.1.0",
    "redux-devtools-extension": "^2.13.9",
    "redux-form": "^8.3.7",
    "redux-logger": "^3.0.6",
    "redux-thunk": "^2.3.0",
    "regenerator-runtime": "^0.13.9",
    "styled-components": "^5.3.0",
    "web-vitals": "^0.2.4"
  },
  "scripts": {
    "webpack-dev-server": "webpack-dev-server",
    "dev": "webpack-dev-server --mode=development ",
    "prod": "webpack --mode=production",
    "build": "webpack --config webpack.config.js",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "postinstall": "react-scripts build",
    "start": "react-scripts start"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "@babel/core": "^7.14.8",
    "@babel/plugin-proposal-class-properties": "^7.14.5",
    "@babel/plugin-transform-runtime": "^7.12.1",
    "@babel/preset-env": "^7.14.8",
    "@babel/preset-react": "^7.14.5",
    "@welldone-software/why-did-you-render": "^6.2.0",
    "babel-cli": "^6.26.0",
    "babel-plugin-styled-components": "^1.13.2",
    "html-webpack-plugin": "^4.5.2",
    "path": "^0.12.7",
    "webpack-cli": "^4.7.2"
  }
}

🌐
webpack
docs.webpack.js.org › loaders › babel-loader
babel-loader - webpack
March 5, 2026 - { "presets": [ "@babel/preset-env", "@babel/preset-react" ] } ... module.exports = { module: { rules: [ { test: /\.(ts|tsx|js|jsx)$/, exclude: /node_modules/, use: { loader: 'babel-loader', options: { presets: [ '@babel/preset-env', '@babel/preset-react', '@babel/preset-typescript' ] } } } ] }, resolve: { extensions: ['.ts', '.tsx', '.js', '.jsx'] } };
🌐
DEV Community
dev.to › iamismile › how-to-setup-webpack-and-babel-for-react-59ph
How to setup Webpack and Babel for React - DEV Community
June 14, 2020 - babel-loader :- Its a webpack plugin. It allows us to teach webpack how to run babel when webpack sees certain files. Let's configure babel by creating a .babelrc file inside the root of the project directory with the following contents inside of it.
🌐
npm
npmjs.com › package › babel-loader
babel-loader - npm
babel module loader for webpack. Latest version: 10.1.1, last published: 4 months ago. Start using babel-loader in your project by running `npm i babel-loader`. There are 18568 other projects in the npm registry using babel-loader.
      » npm install babel-loader
    
Published   Mar 09, 2026
Version   10.1.1
Find elsewhere
🌐
GitHub
github.com › babel › babel-loader › issues › 1012
Issue while creating build for React JS Application · Issue #1012 · babel/babel-loader
December 4, 2023 - ./node_modules/ml-matrix/src/symmetricMatrix.js 7:2 Module parse failed: Unexpected character '#' (7:2) File was processed with these loaders: ./node_modules/babel-loader/lib/index.js You may need an additional loader to handle the result of these loaders.
Author   babel
🌐
DigitalOcean
digitalocean.com › community › tutorials › settingup-reactjs-using-webpack-4-and-babel-7-the-definitive-guide
How To Set Up React Using Webpack 4 and Babel 7 | DigitalOcean
December 12, 2019 - For every file with a .js or .jsx extension, excluding the node_modules folder and its content, Webpack uses babel-loader to transpile the ES6 code to ES5. With this done, let’s head over to writing our React component.
🌐
Medium
medium.com › @agzuniverse › webpack-and-babel-what-are-they-and-how-to-use-them-with-react-5807afc82ca8
Webpack and Babel — What are they, and how to use them with React. | by Aswin G | Medium
December 20, 2019 - npm i babel-loader style-loader css-loader --save-dev · Now let’s create .babelrc , the configuration file for Babel. It’s nice and simple, with it’s purpose obvious — tell babel to use the plugins we installed earlier. Now it’s time to install React and get to coding!
🌐
GitHub
github.com › babel › babel-loader
GitHub - babel/babel-loader: 📦 Babel loader for webpack
When set, each Babel transform output will be compressed with Gzip. If you want to opt-out of cache compression, set it to false -- your project may benefit from this if it transpiles thousands of files. customize: Default null. The path of a module that exports a custom callback like the one that you'd pass to .custom(). Since you already have to make a new file to use this, it is recommended that you instead use .custom to create a wrapper loader.
Starred by 4.8K users
Forked by 451 users
Languages   JavaScript
🌐
DEV Community
dev.to › riyanegi › setting-up-webpack-5-with-react-and-babel-from-scratch-2021-271l
Setting up Webpack 5 with React and Babel from scratch - DEV Community
June 7, 2024 - I followed his Youtube Video to learn and build this react starter template. ... Nice tutorial . I think webpack will inject script tag in index.html. We don't need to do it manually. Instead of creating .babelrc we can inject it like this use: { loader: "babel-loader", options: { presets: ["@babel/preset-env", "@babel/preset-react"], }, },
🌐
npm
npmjs.com › package › react-app-rewire-babel-loader
react-app-rewire-babel-loader - npm
December 20, 2017 - Rewire `babel-loader` loader in your `create-react-app` project using `react-app-rewired`.. Latest version: 0.1.1, last published: 8 years ago. Start using react-app-rewire-babel-loader in your project by running `npm i react-app-rewire-babel-loader`. There are 4 other projects in the npm registry ...
      » npm install react-app-rewire-babel-loader
    
Published   Dec 20, 2017
Version   0.1.1
Author   Alberto Leal
🌐
GitHub
github.com › babel › babel-loader › issues › 380
Babel loader won't work with webpack 2 and react · Issue #380 · babel/babel-loader
February 16, 2017 - import React from 'react'; import ReactDOM from 'react-dom'; // import FasetDirectoryListing from './components/FasetDirectoryListing.js'; class FasetDirectoryListing extends React.Component { render() { return <div>asdas</div> } } ReactDOM.render( React.createElement(FasetDirectoryListing, { filters: { }, }), document.getElementById('app') ); ... var path = require('path'); var webpack = require('webpack'); module.exports = { entry: './app.js', output: { path: __dirname, filename: 'bundle.js' }, resolve: { extensions: ['.js', '.jsx'] }, module: { loaders: [ { test: /\.(js|jsx)$/, loaders: 'babel-loader', exclude: /node_modules/, include: path.join (__dirname, './components'), query: { presets: ['es2015', 'react'] } } ] }, };
Author   babel
🌐
Babel
babeljs.io › presets › @babel/preset-react
@babel/preset-react · Babel
You can also check out the React Getting Started page ... Decides which runtime to use. automatic auto imports the functions that JSX transpiles to. classic does not automatic import anything. boolean, defaults to true if Babel's envName id "development", and false otherwise.
🌐
LinkedIn
linkedin.com › learning › learning-webpack-4-2 › set-up-babel-loader-for-a-react-or-es6-project
Set up babel-loader for a React or ES6 project - Learning webpack 4 Video Tutorial | LinkedIn Learning, formerly Lynda.com
February 28, 2019 - Let's go to our terminal and we're going to, install babel-loader and also @babel/core and we're going to save these to our dev dependencies. Babel-loader is the loader, babel/core is the actual babel package that handles the transformations.
🌐
Npm
npm.io › package › babel-loader
Babel-loader NPM | npm.io
(instead install babel-cli or babel-core) In the case one of your dependencies is installing babel and you cannot uninstall it yourself, use the complete name of the loader in the webpack config: ... react-scripts@angular-devkit/build-angular@xdn/coreyoyuo-scriptswhzbcx_web_comswhzbcx_web_cxwhzbcx_web_cx3whzbcx_web_cxewhzbcx_web_cxgiswhzbcx_web_gwwhzbcx_web_sjzxwhzbcx_web_swdzwhzbcx_web_xjwhzbcx_web_yzxmi-scriptsxunmeng-techzhouhaifei-react-scriptsedit-blog-from-site@bbn/bbn-vue@bsolution/dev@bsolution/fast@bsolution/scripts@sim-app/webpack-configs@proteria/react-scripts@obstinate/react-script