pinejs icon indicating copy to clipboard operation
pinejs copied to clipboard

node:17 may fail with webpack

Open fisehara opened this issue 3 years ago • 1 comments

Starting with node:17 (e.g. docker base image) the webpack scripts are failing with this error:

 > @balena/[email protected] webpack-browser
 > grunt browser
 
 Running "checkDependencies:this" (checkDependencies) task
 
 Running "webpack:browser" (webpack) task
Fatal error: error:0308010C:digital envelope routines::unsupported

Workaround is setting a node_options env var and run node:17.

export NODE_OPTIONS=--openssl-legacy-provider

Otherwise, down-version to node:16.

Refer to: https://github.com/webpack/webpack/issues/14532

fisehara avatar Apr 05 '22 21:04 fisehara

@fisehara I assume this was solved?

Page- avatar Jan 19 '24 10:01 Page-