Create React App build fails with OpenSSL crypto error
Error recorded 2 times in PanelAlpha Engine deploys on Cra. The deploy log below is the recorded failure output.
TypeErrorAn error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.
Seen2 times
WhereCra
StatusObservedOur team will look into this soon, verify the cause and try to fix it in an upcoming release.
Why it happens
The application uses Create React App 3.4.3 with an older webpack version. The build is running with a Node/OpenSSL combination that rejects webpack’s legacy hashing algorithm, producing ERR_OSSL_EVP_UNSUPPORTED. The lockfile copy warnings are not the reported build failure.
What the log looks like
Deploy log
yarn run v1.22.22$ react-scripts buildCreating an optimized production build...Error: error:0308010C:digital envelope routines::unsupportedcode: 'ERR_OSSL_EVP_UNSUPPORTED'