Make sure you have "react-scripts": "^5.0.1"
on your package.json dependencies, then use command npm install
. For some reason my react-scripts version was 3.x.x and that was causing the problem. I used cra too.
Make sure you have "react-scripts": "^5.0.1"
on your package.json dependencies, then use command npm install
. For some reason my react-scripts version was 3.x.x and that was causing the problem. I used cra too.