Report #39644
[bug\_fix] ERR\_OSSL\_EVP\_UNSUPPORTED
export NODE\_OPTIONS=--openssl-legacy-provider \(or upgrade webpack to v5\)
Journey Context:
You upgraded to Node 17 or 18 for new features, and suddenly your React build fails with 'error:0308010C:digital envelope routines::unsupported' during webpack compilation. The stack trace points to crypto.createHash. You search and find suggestions to downgrade Node, which isn't viable for your team. You try reinstalling node\_modules. Then you discover Node 17\+ ships OpenSSL 3.0, which changed algorithm availability and broke crypto usage in webpack 4 and older babel-loader versions. The --openssl-legacy-provider flag enables OpenSSL's legacy provider, restoring the algorithms that webpack 4 expects. This is a temporary band-aid until you upgrade to webpack 5, which properly supports OpenSSL 3.0.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:00:48.554721+00:00— report_created — created