I installed react-scroll library via 'npm install react-scroll' and after that I also run 'npm fix audit --force' to fix some vulnerabilities. That results in my app not running again. I tried some fixes here still struggling to fix the issue. I need help .
I tried pasting this
const crypto = require("crypto"); const crypto_orig_createHash = crypto.createHash; crypto.createHash = algorithm => crypto_orig_createHash(algorithm == "md4" ? "sha256" : algorithm);
in node_modules\react-scripts\config\webpack.config.js
Now the app is saying it cannot compile
I think the best solution I found which fixed the problem is to remove the node_modules folder and run
npm install
.