To fix this issue simply upgrade react-scripts package (check latest version with npm info react-scripts version
):
- Replace in your package.json
"react-scripts": "^3.x.x"
with"react-scripts": "^3.4.1"
(or the latest available version) - (optional for some) Delete your node_modules folder
- Run
npm install
oryarn install
Some people reported that this issue was caused by running npm audit fix
(avoid it!).