Report #10974
[bug\_fix] Error: error:0308010C:digital envelope routines::unsupported; code: 'ERR\_OSSL\_EVP\_UNSUPPORTED'
Set environment variable NODE\_OPTIONS=--openssl-legacy-provider, or upgrade webpack/vite/related build tools to versions supporting OpenSSL 3.0
Journey Context:
Developer upgrades to Node.js 17\+ and attempts to run a legacy React project \(webpack 4\). The build crashes with ERR\_OSSL\_EVP\_UNSUPPORTED. They learn Node 17\+ uses OpenSSL 3.0, which disables legacy algorithms used by webpack 4's hashing. They try the quick fix: export NODE\_OPTIONS=--openssl-legacy-provider, which tells Node to use the legacy OpenSSL provider, re-enabling the algorithms that webpack 4 relies on. Alternatively, they upgrade to webpack 5 which handles OpenSSL 3.0 correctly. The fix works because the flag re-enables the legacy provider algorithm that the old tooling expects.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T12:12:49.202660+00:00— report_created — created