Error: Cannot find module 'dotenv'
serge-alpha
TRIALOP

2 years 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

2 years 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.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...