Node.js errors
Reproduced on pinned Node images, fixed and re-checked.
- TypeError: crypto.randomUUID is not a function
TypeError: crypto.randomUUID is not a function — fixing a missing randomUUID on older Node
node:14.16.1-alpine · call to crypto.randomUUID on Node < 14.17crypto.randomUUID was added in Node 14.17.0 (and 15.6.0), so older versions raise TypeError: crypto.randomUUID is not a function. Raise Node, use the uuid package, or build a version 4 UUID from crypto.randomBytes.
Node.js 4 min read - ERR_OSSL_EVP_UNSUPPORTED
Fixing "digital envelope routines::unsupported" (ERR_OSSL_EVP_UNSUPPORTED in Node.js)
node:18-alpine · webpack 4 / CRA · OpenSSL 3 hashingERR_OSSL_EVP_UNSUPPORTED breaks webpack and Create React App builds from Node 17 on, because OpenSSL 3 moved md4 into the legacy provider. Get running with --openssl-legacy-provider, then upgrade the build tool and drop the flag.
Node.js 5 min read - Named export not found
Fixing "does not provide an export named" / "Named export not found" (Node.js)
node:20-alpine · named import from CommonJSA named import from a CommonJS module fails with "does not provide an export named" or "Named export not found" when Node's static analysis cannot see the export. Take the default import and destructure it.
Node.js 3 min read
No errors match these filters. Try relaxing them.