dotenv Error: Cannot find module at {Path}/main.jsx

I’m building a web-site, and using Firebase to store data. So, the private keys are on a .env file. I’m trying to import them in a firebase config file. I’m using import in order to use modules. And by following the guide in the dotenv doc, I ran ‘node -r dotenv/config main.jsx’ on my terminal. But I got an error, and I don’t understand what to do.
Thanks !