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

Viewed 48

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 !

Folders' Architecture enter image description here

Firebase.js enter image description here

main.jsx enter image description here

1 Answers
Related