Skip to content

Commit

Permalink
Add work-around to ensure building works with Node.js 16+
Browse files Browse the repository at this point in the history
Node.js 16+ supports dynamically linking with OpenSSL 3.0, however, that
results in 'error:0308010C:digital envelope routines::unsupported' error.

To work-around that with the legacy Webpack 4.0 we use, one needs to
enable the OpenSSL 3.0 Legacy provider by setting:
NODE_OPTIONS=--openssl-legacy-provider

For more info, see:
- webpack/webpack#14532
- nodejs/node#40455
- nodejs/node#40948
  • Loading branch information
tjanez committed Mar 17, 2023
1 parent 3e252a2 commit daf7b01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.9.0",
"private": true,
"scripts": {
"build": "webpack --mode production",
"buildProd": "webpack --mode production",
"dev": "webpack --mode development --progress --watch",
"build": "env NODE_OPTIONS=--openssl-legacy-provider webpack --mode production",
"buildProd": "env NODE_OPTIONS=--openssl-legacy-provider webpack --mode production",
"dev": "env NODE_OPTIONS=--openssl-legacy-provider webpack --mode development --progress --watch",
"lint": "yarn run eslint src",
"test": "jest"
},
Expand Down

0 comments on commit daf7b01

Please sign in to comment.