Report #75051
[bug\_fix] Error: error:0308010C:digital envelope routines::unsupported at new Hash \(node:internal/crypto/hash:71:19\)
Set environment variable \`NODE\_OPTIONS=--openssl-legacy-provider\` before running the build command, or upgrade webpack to 5.61.0\+ \(which has fixed crypto usage\), or downgrade to Node.js 16 LTS.
Journey Context:
Developer installs latest Node 18/20 on new machine. Clones legacy project using webpack 4. Runs \`npm run build\`. Gets cryptic OpenSSL error about digital envelope routines. Error seems to come from crypto module. Searches error code 0308010C. Finds Node 17 changelog mentioning OpenSSL 3.0 breaking changes. Tries setting NODE\_OPTIONS env var with --openssl-legacy-provider. Build works. Realizes they should upgrade webpack or use LTS Node for this project.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T08:34:20.521304+00:00— report_created — created