Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit daf7b01

Browse files
committed
Add work-around to ensure building works with Node.js 16+
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
1 parent 3e252a2 commit daf7b01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "1.9.0",
44
"private": true,
55
"scripts": {
6-
"build": "webpack --mode production",
7-
"buildProd": "webpack --mode production",
8-
"dev": "webpack --mode development --progress --watch",
6+
"build": "env NODE_OPTIONS=--openssl-legacy-provider webpack --mode production",
7+
"buildProd": "env NODE_OPTIONS=--openssl-legacy-provider webpack --mode production",
8+
"dev": "env NODE_OPTIONS=--openssl-legacy-provider webpack --mode development --progress --watch",
99
"lint": "yarn run eslint src",
1010
"test": "jest"
1111
},

0 commit comments

Comments
 (0)