Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node:17 may fail with webpack #539

Open
fisehara opened this issue Apr 5, 2022 · 1 comment
Open

node:17 may fail with webpack #539

fisehara opened this issue Apr 5, 2022 · 1 comment

Comments

@fisehara
Copy link
Contributor

fisehara commented Apr 5, 2022

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: webpack/webpack#14532

@Page-
Copy link
Collaborator

Page- commented Jan 19, 2024

@fisehara I assume this was solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants