I've recently switched to using Vite instead of Webpack, and now this module has stopped working.
I believe Vite changes the syntax to use import.meta.env instead of process.env.
Sorry for the lack of detail, on mobile currently so will update when back.