Skip to content

Commit 9f50cc8

Browse files
Daan Hooglandclaude
andcommitted
ui: fix build for Node 17+ / OpenSSL 3 and raise heap to 4 GB
webpack 4 uses the MD4 hash algorithm which OpenSSL 3 (Node 17+) no longer provides by default, causing ERR_OSSL_EVP_UNSUPPORTED. NODE_OPTIONS is used (rather than a direct node flag) so the setting is inherited by all child processes that webpack spawns during the build. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9a16fe0 commit 9f50cc8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ui/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
},
2626
"scripts": {
2727
"prebuild": "./prebuild.sh",
28-
"start": "vue-cli-service lint --no-fix && vue-cli-service serve",
29-
"serve": "vue-cli-service lint --no-fix && vue-cli-service serve",
30-
"build": "vue-cli-service build",
28+
"start": "NODE_OPTIONS='--openssl-legacy-provider' vue-cli-service lint --no-fix && NODE_OPTIONS='--openssl-legacy-provider' vue-cli-service serve",
29+
"serve": "NODE_OPTIONS='--openssl-legacy-provider' vue-cli-service lint --no-fix && NODE_OPTIONS='--openssl-legacy-provider' vue-cli-service serve",
30+
"build": "NODE_OPTIONS='--max-old-space-size=4096 --openssl-legacy-provider' vue-cli-service build",
3131
"postbuild": "./postbuild.sh",
3232
"lint": "vue-cli-service lint",
3333
"i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' --locales './src/locales/**/*.json'",

0 commit comments

Comments
 (0)