Closed LeifW closed 1 year ago
Could maybe test the node version (> 16) and conditionally set that arg?
Hi @LeifW, the webpackNodeArgs := Seq("--openssl-legacy-provider")
trick and setting node to v18.12.1
fixes the problem for me.
@mathieuleclaire Yes, that fixes this to work with node versions linked against openssl 3, but then other versions fail with: node: bad option: --openssl-legacy-provider.
.
There's an upstream ticket for this: https://github.com/webpack/webpack/issues/14532 that suggests invoking
node
with--openssl-legacy-provider
. Indeed, addingwebpackNodeArgs := Seq("--openssl-legacy-provider")
to the build.sbt gets past this on Node 19. However, then users running node 16 getnode: bad option: --openssl-legacy-provider
. Is there a way to support both?