nodejs 17: digital envelope routines::unsupported
See original GitHub issueBug report
What is the current behavior?
[webpack-cli] 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 (/opt/src/node_modules/webpack/lib/util/createHash.js:155:18)
at BulkUpdateDecorator.digest (/opt/src/node_modules/webpack/lib/util/createHash.js:80:21)
at /opt/src/node_modules/webpack/lib/DefinePlugin.js:595:38
at Hook.eval [as call] (eval at create (/opt/src/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:100:1)
at Hook.CALL_DELEGATE [as _call] (/opt/src/node_modules/tapable/lib/Hook.js:14:14)
at Compiler.newCompilation (/opt/src/node_modules/webpack/lib/Compiler.js:1053:26)
at /opt/src/node_modules/webpack/lib/Compiler.js:1097:29
at Hook.eval [as callAsync] (eval at create (/opt/src/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Other relevant information: webpack version: 5.59.0 Node.js version: 17.0.0 Operating System: linux x64
Issue Analytics
- State:
- Created 2 years ago
- Reactions:320
- Comments:231 (38 by maintainers)
Top Results From Across the Web
Error message "error:0308010C:digital envelope routines ...
This error is because node.js 17 uses OpenSSL3, which has changed code for initialization context of md family (including md4), and this is...
Read more >error:0308010c:digital envelope routines::unsupported [Node ...
You are likely getting this error because of 2 main reasons: ... The error can also occur because you're using Node 17. How...
Read more >How to Fix the Error Error:error:0308010C:digital envelope ...
Error: error:0308010C:digital envelope routines::unsupported. With Node.js v17+ supporting OpenSSL 3.0, algorithms like MD4 have been ...
Read more >error:0308010C:digital envelope routines::unsupported [Fixed]
The "error:0308010C:digital envelope routines::unsupported" occurs because Node.js v17 and later use OpenSSL v3.0 which has had breaking changes. To resolve the ...
Read more >How to fix the digital envelope routines::unsupported error on ...
If you hit an ERR_OSSL_EVP_UNSUPPORTED error (like 0308010C:digital envelope routines::unsupported) in your application with Node.js 17, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
Top Related Hashnode Post
No results found
Top GitHub Comments
workaround:
where should this be added?