Closed
Description
With node 18 on Ubuntu 22.04 (on master).
This might have something to do with using older webpack.
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:133:10)
at module.exports (/var/www/html/apps/facerecognition/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/var/www/html/apps/facerecognition/node_modules/webpack/lib/NormalModule.js:417:16)
at handleParseError (/var/www/html/apps/facerecognition/node_modules/webpack/lib/NormalModule.js:471:10)
at /var/www/html/apps/facerecognition/node_modules/webpack/lib/NormalModule.js:503:5
at /var/www/html/apps/facerecognition/node_modules/webpack/lib/NormalModule.js:358:12
at /var/www/html/apps/facerecognition/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/var/www/html/apps/facerecognition/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (/var/www/html/apps/facerecognition/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /var/www/html/apps/facerecognition/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at context.callback (/var/www/html/apps/facerecognition/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /var/www/html/apps/facerecognition/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 v18.11.0
make: *** [Makefile:102: build-vue] Error 1
The solution is to support an older version of openssl, but this is not good
export NODE_OPTIONS=--openssl-legacy-provider
Expected behaviour
Should build on all systems.
Metadata
Assignees
Labels
No labels