I can push to the firebase live site with "firebase deploy" command in terminal just fine, however when I want to push to main so it auto updates this is what is displayed on the deploy failed on Github
Run yarn build
yarn run v1.22.19
$ react-scripts build
Creating an optimized production build...
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports
this error occurs when you use Node.js of version 17+ and use OpenSSL v3.0 which has some major changes in its algorithm. since you are using
Create React App applications, just upgrade react-scripts to v5.0.0 or higher
will solve the issue .
for npm users run :
npm install react-scripts@latest
for yarn users run :
yarn upgrade --latest react-scripts