Open Ayc0 opened 2 years ago
Describe the bug
When I run yarn watch in the website/ folder, the command crashes with this error:
yarn watch
website/
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)
NODE_OPTIONS=--openssl-legacy-provider
To Reproduce Steps to reproduce the behavior:
yarn dev
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
Laptop:
Describe the bug
When I run
yarn watch
in thewebsite/
folder, the command crashes with this error:To fix this, I have to run
NODE_OPTIONS=--openssl-legacy-provider
before runningyarn 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:
yarn watch
oryarn dev
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
Laptop: