// add this to package.json, check source for more info:
"scripts": {
"start": "react-scripts --openssl-legacy-provider start",
"build": "react-scripts --openssl-legacy-provider build",
}
"scripts": {
"start": "export SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts start",
"build": "export SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts build"
}
// Put this code on the top of the
// >> node_modules/webpack/lib/util/createHash.js
// "createHash.js" is a file name, find it and paste below code
const crypto = require("crypto");
const originalCreateHash = crypto.createHash;
crypto.createHash = (...args) => {
if (args[0] == 'md4') {
return originalCreateHash('md5');
}
return originalCreateHash(...args);
};
// Tested on Fedora 36 with Node 16.