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

ERR_OSSL_EVP_UNSUPPORTED #650

Open
Ayc0 opened this issue Jun 1, 2022 · 0 comments · May be fixed by #661
Open

ERR_OSSL_EVP_UNSUPPORTED #650

Ayc0 opened this issue Jun 1, 2022 · 0 comments · May be fixed by #661

Comments

@Ayc0
Copy link
Contributor

Ayc0 commented Jun 1, 2022

Describe the bug

When I run yarn watch in the website/ folder, the command crashes with this error:

astexplorer/website/node_modules/babel-loader/lib/index.js:59:71 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

To fix this, I have to run NODE_OPTIONS=--openssl-legacy-provider before running yarn watch (see https://stackoverflow.com/questions/69665222/node-js-17-0-1-gatsby-error-digital-envelope-routinesunsupported-err-os)

To Reproduce
Steps to reproduce the behavior:

  1. Go to the folder 'website/'
  2. Make sure that you're in node v17 or above
  3. Run yarn watch or yarn dev
  4. See error

Expected behavior

This seems to be related to an issue related to OpenSSL 3 change NodeJS (see https://medium.com/the-node-js-collection/node-js-17-is-here-8dba1e14e382#5f07), and webpack shipped a fix in the v5.61.0 - https://github.com/webpack/webpack/releases/tag/v5.61.0.

Screenshots

image

Laptop:

  • OS: macOS 12.4
  • Node v18.1
@gengjiawen gengjiawen linked a pull request Jul 23, 2022 that will close this issue
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.

1 participant