[go: up one dir, main page]

Page MenuHomePhabricator

Unable to compile assets (digital envelope routines unsupported)
Closed, ResolvedPublicBUG REPORT

Description

Running npm run assets results in the following error:

node:internal/crypto/hash:71
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:140:10)
    at module.exports (svgtranslate/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (svgtranslate/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (svgtranslate/node_modules/webpack/lib/NormalModule.js:471:10)
    at svgtranslate/node_modules/webpack/lib/NormalModule.js:503:5
    at svgtranslate/node_modules/webpack/lib/NormalModule.js:358:12
    at svgtranslate/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (svgtranslate/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at Array.<anonymous> (svgtranslate/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (svgtranslate/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
    at svgtranslate/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
    at svgtranslate/node_modules/graceful-fs/graceful-fs.js:123:16
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Possible info here: https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@Samwilson is this a bug that is still relevant? What is the impact of it?

Yep, still relevant. The impact is that developers can't install the tool locally for development.

However, I have a patch in for T233182 that will fix for this as well. I've now referenced this task to the commit message.

Now we've upgraded the required Node version to 18, this issue is resolved. Nothing to QA here, it's a developer-only issue.