Error: Cannot find module 'dotenv'

serge-alphaTRIAL

9 months ago

check trying to deploy my express backend but i keep getting this message
Error: Cannot find module 'dotenv'

i mean its found in node_modules but that was ignored

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

1 Replies

9 months ago

You wouldn't want to attempt to load dotenv in a production environment since your environment variable are set in the service variables tab and directly injected into the environment.