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

webpack broken with nodejs 17: digital envelope routines::unsupported #207

Closed
jdambron opened this issue Oct 21, 2021 · 4 comments · Fixed by #213
Closed

webpack broken with nodejs 17: digital envelope routines::unsupported #207

jdambron opened this issue Oct 21, 2021 · 4 comments · Fixed by #213

Comments

@jdambron
Copy link
Contributor

If upgrading to nodejs 17, the application fails with the following error

Error: error:0308010C:digital envelope routines::unsupported

The issue seems to be related to webpack (see webpack/webpack#14532) and is flagged as critical on their side but not yet fixed.

While waiting for a patch, be careful to stay on nodejs version 16.

@jdambron
Copy link
Contributor Author

💡 The workaround export NODE_OPTIONS=--openssl-legacy-provider works.

@0xdef1cafe
Copy link
Collaborator

thanks for the heads up. would you like to create a PR with an .nvmrc file to peg it to 16 (latest stable)?

@technojak
Copy link
Contributor

Odd Nodejs version numbers are canary/unstable versions as Nodejs prepare for the next release. We shouldn't ever use it for applications. Package developers should use it to prepare for future releases that wont work on previous versions.

Some info: https://stackoverflow.com/questions/14790017/how-does-node-js-version-numbers-work-and-how-do-i-ensure-compatibility#:~:text=Node%20has%20a%20two%2Dtrack,1%20and%200.8.

@jdambron
Copy link
Contributor Author

@0xdef1cafe done ✅

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

Successfully merging a pull request may close this issue.

3 participants