Skip to content

Instantly share code, notes, and snippets.

@tongueroo
Created April 23, 2024 18:33
Show Gist options
  • Save tongueroo/d56e29daca48b0c3913c36352b876fa9 to your computer and use it in GitHub Desktop.
Save tongueroo/d56e29daca48b0c3913c36352b876fa9 to your computer and use it in GitHub Desktop.

Error: error:0308010C:digital envelope routines::unsupported Error

❯ rails assets:precompile [dotenv] Loaded .env.development [dotenv] Loaded .env Compiling... Compilation failed: node:internal/crypto/hash:68 this[kHandle] = new _Hash(algorithm, xofLen); ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:68:19)
    at Object.createHash (node:crypto:138:10)
    at module.exports (/data/demo/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/data/demo/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/data/demo/node_modules/webpack/lib/NormalModule.js:471:10)
    at /data/demo/node_modules/webpack/lib/NormalModule.js:503:5
    at /data/demo/node_modules/webpack/lib/NormalModule.js:358:12
    at /data/demo/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/data/demo/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/data/demo/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
    at /data/demo/node_modules/loader-runner/lib/LoaderRunner.js:236:3
    at context.callback (/data/demo/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /data/demo/node_modules/babel-loader/lib/index.js:59:71 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v20.11.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment