// 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.