Report #8355
[bug\_fix] Error: error:0308010C:digital envelope routines::unsupported
Set NODE\_OPTIONS=--openssl-legacy-provider in your environment before running the build, or upgrade to webpack 5.61.0\+ / Next.js 12\+ that natively supports OpenSSL 3.0.
Journey Context:
You upgrade to Node 17\+ \(or Node 18/20\) and suddenly your React, Vue, or Next.js build crashes with a cryptic OpenSSL error during the webpack compilation phase. The error occurs because Node 17 switched to OpenSSL 3.0, which has stricter cryptographic algorithms that break old webpack 4 configurations relying on the md4 hash. The immediate fix is setting the environment variable NODE\_OPTIONS=--openssl-legacy-provider, which tells Node to re-enable the legacy OpenSSL provider and allow the old algorithms. This unblocks your build. However, the permanent solution is upgrading your build toolchain \(webpack 5.61.0\+, Next.js 12\+, or Vite\) to versions that natively support OpenSSL 3.0 without the legacy flag.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T05:17:27.403571+00:00— report_created — created