I made a workaround. I compared my old and new package-lock.json
of my projects and I saw some @babel lib version changed to v7.20.2 (on Nov 4th, 2022). I overwrote the new package-lock.json
with old one and my react app built and ran successfully again.
I then changed (downgrade) some of @babel package in my package.json
and it is solved the problem:
Put this lines into your package.json
file:
"@babel/core": "7.19.6",
"@babel/generator": "7.19.6",
"@babel/compat-data": "7.19.4",
"@babel/helper-compilation-targets": "7.19.3",
"@babel/helper-create-class-features-plugin":"7.19.0",
"@babel/helper-module-transforms":"7.19.6",