log4brains
log4brains copied to clipboard
fix: workaround for ERR_OSSL_EVP_UNSUPPORTED build issue
This is a workaround to fix https://github.com/thomvaill/log4brains/issues/85 following this article https://medium.com/@sahilali/resolving-error-0308010c-digital-envelope-routines-unsupported-in-node-js-v19-9-0-2114021209cb
Tested locally on Mac with Node 21.5.0 and npm 10.2.4.
Before changes it was returning
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:68:19)
at Object.createHash (node:crypto:138:10)
on yarn build
and yarn dev
After changes it compiles well