Report #48782
[bug\_fix] error:0308010C:digital envelope routines::unsupported
NODE\_OPTIONS=--openssl-legacy-provider npm start or upgrade to webpack 5
Journey Context:
Developer upgrades to Node.js 18 \(LTS\) to get latest features. Clones an older project using webpack 4 or React Scripts 4. Runs npm start. Gets cryptic OpenSSL error 'error:0308010C:digital envelope routines::unsupported' during webpack compilation. Confused because code worked on Node 16. Realizes Node 17\+ uses OpenSSL 3.0 which breaks old crypto algorithms in webpack 4's hash functions. Options: 1\) Downgrade to Node 16 \(bad\), 2\) Enable legacy OpenSSL provider via NODE\_OPTIONS=--openssl-legacy-provider \(quick fix\), 3\) Upgrade to webpack 5 / react-scripts 5 \(proper fix\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T12:22:01.606521+00:00— report_created — created