What happens if you add the "@babel/preset-env" and "@babel/preset-react" presets to the babel.config.js, and remove .babelrc entirely?
It really looks to me like "@babel/preset-react" is just not applied, and you definitely do not need both a babel.config.js and a root .babelrc, so you can simplify your setup by only using the former.






















