You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contributors using Node.js v17 or later encounter a build error due to changes in OpenSSL handling. This error occurs when running docusaurus commands and is linked to the incompatibility of OpenSSL settings in newer Node.js versions. To enhance compatibility across different Node.js versions, we should add the NODE_OPTIONS=--openssl-legacy-provider flag directly in our package.json scripts.
Proposed Solution
Update the start and build scripts in package.json to include the NODE_OPTIONS flag. This will set the OpenSSL legacy provider and ensure compatibility without requiring contributors to manually adjust environment variables or downgrade their Node.js version.
Description
Contributors using Node.js v17 or later encounter a build error due to changes in OpenSSL handling. This error occurs when running
docusaurus
commands and is linked to the incompatibility of OpenSSL settings in newer Node.js versions. To enhance compatibility across different Node.js versions, we should add theNODE_OPTIONS=--openssl-legacy-provider
flag directly in ourpackage.json
scripts.Proposed Solution
Update the
start
andbuild
scripts inpackage.json
to include theNODE_OPTIONS
flag. This will set the OpenSSL legacy provider and ensure compatibility without requiring contributors to manually adjust environment variables or downgrade their Node.js version.Changes to Make
Update the
package.json
scripts as follows:Further
I am working on that issue
Tasks
The text was updated successfully, but these errors were encountered: