Running into ERR_OSS_ENV_UNSUPPORTED error

It's been a while since I last worked on by Bunch of Stuff project, and was hitting several errors, including this one when I was trying to run the compile option using webpacker

Even though I'm on version 18.12.1 of Node, I was still unable to get around the issue. After some digging, I had to override the SSL provider with a legacy one by doing the following in the terminal.

export NODE_OPTIONS=--openssl-legacy-provider

This will work with macOS as well as Linux.