When running yarn build, the build process fails with the following error:
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:130:10)
at module.exports (/Users/tingzhanghuang/Documents/self-effort/basic_service_platform/tyadmin/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/Users/tingzhanghuang/Documents/self-effort/basic_service_platform/tyadmin/node_modules/webpack/lib/NormalModule.js:417:16)
at /Users/tingzhanghuang/Documents/self-effort/basic_service_platform/tyadmin/node_modules/webpack/lib/NormalModule.js:452:10
at /Users/tingzhanghuang/Documents/self-effort/basic_service_platform/tyadmin/node_modules/webpack/lib/NormalModule.js:323:13
at /Users/tingzhanghuang/Documents/self-effort/basic_service_platform/tyadmin/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /Users/tingzhanghuang/Documents/self-effort/basic_service_platform/tyadmin/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at context.callback (/Users/tingzhanghuang/Documents/self-effort/basic_service_platform/tyadmin/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /Users/tingzhanghuang/Documents/self-effort/basic_service_platform/tyadmin/node_modules/babel-loader/lib/index.js:59:103 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Expected Behavior
The build process should complete successfully without any errors.
build 命令执行报错
Current Behavior
When running
yarn build
, the build process fails with the following error:Expected Behavior
The build process should complete successfully without any errors.
Steps to Reproduce
yarn build
command.Environment