Getting the following error when I am trying to deploy an LWC OSS app to Heroku, I tried to deploy my app which had customizations got the same error, but now this is an LWC OSS fresh installation which I am trying to deploy. Still facing the issue.
Here is the Repo: https://github.com/somyatiwari59/SterlingCombine/tree/master
Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10) at BulkUpdateDecorator.hashFactory (/tmp/build_5ccc2cd6/node_modules/lwc-services/node_modules/webpack/lib/util/createHash.js:145:18) at BulkUpdateDecorator.update (/tmp/build_5ccc2cd6/node_modules/lwc-services/node_modules/webpack/lib/util/createHash.js:46:50) at RawSource.updateHash (/tmp/build_5ccc2cd6/node_modules/lwc-services/node_modules/webpack-sources/lib/RawSource.js:64:8) at NormalModule._initBuildHash (/tmp/build_5ccc2cd6/node_modules/lwc-services/node_modules/webpack/lib/NormalModule.js:870:17) at handleParseResult (/tmp/build_5ccc2cd6/node_modules/lwc-services/node_modules/webpack/lib/NormalModule.js:936:10) at /tmp/build_5ccc2cd6/node_modules/lwc-services/node_modules/webpack/lib/NormalModule.js:1028:4 at processResult (/tmp/build_5ccc2cd6/node_modules/lwc-services/node_modules/webpack/lib/NormalModule.js:745:11) at /tmp/build_5ccc2cd6/node_modules/lwc-services/node_modules/webpack/lib/NormalModule.js:809:5 node:internal/crypto/hash:67 this[kHandle] = new _Hash(algorithm, xofLen); ^ Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10) at BulkUpdateDecorator.hashFactory (/tmp/build_5ccc2cd6/node_modules/lwc-services/node_modules/webpack/lib/util/createHash.js:145:18) at BulkUpdateDecorator.update (/tmp/build_5ccc2cd6/node_modules/lwc-services/node_modules/webpack/lib/util/createHash.js:46:50) at RawSource.updateHash (/tmp/build_5ccc2cd6/node_modules/lwc-services/node_modules/webpack-sources/lib/RawSource.js:64:8) at NormalModule._initBuildHash (/tmp/build_5ccc2cd6/node_modules/lwc-services/node_modules/webpack/lib/NormalModule.js:870:17) at handleParseResult (/tmp/build_5ccc2cd6/node_modules/lwc-services/node_modules/webpack/lib/NormalModule.js:936:10) at /tmp/build_5ccc2cd6/node_modules/lwc-services/node_modules/webpack/lib/NormalModule.js:1028:4 at processResult (/tmp/build_5ccc2cd6/node_modules/lwc-services/node_modules/webpack/lib/NormalModule.js:745:11) at /tmp/build_5ccc2cd6/node_modules/lwc-services/node_modules/webpack/lib/NormalModule.js:809:5 { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' } Node.js v17.2.0 -----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys