Webpack issues on Node 17 · Issue #785 · os-js/OS.js (original) (raw)

A friend tried deploying the web app on Heroku and it showed this error (pasted in the bin link below)
https://pastebin.com/aadQpxS9

The fix for this was adding export NODE_OPTIONS=--openssl-legacy-provider; to build script in package.json

If a check for nodejs version can be implemented using a bash script or the above could directly be put in package.json then deployment could be made easier for NodeJs versions >=17