Any Luck mate?
I got this error because I forgot to install dotenv
npm i dotenv
then I just imported and everything's working fine
import dotenv from "dotenv"; dotenv.config();