I bootstrapped my application with create-react-app and when I run my app it compiles with warnings and it throws errors on the browser.
Error while com
Just follow these steps:-
step 1: npm install --save-dev npm-force-resolutions
npm install --save-dev npm-force-resolutions
step 2: add in package.json
"resolutions": { "moment": "2.24.0" }
step 3: add in scripts in package.json
"preinstall": "npx npm-force-resolutions"
step 4: npm install
npm install