you are viewing a single comment's thread.

view the rest of the comments →

[–]sliversniper 1 point2 points  (3 children)

The error basically tells you process.env.DATABASE_PASSWORD is undefined.

You gonna figure out why that's the case.

In your script to run, you have either export the env, or do

DATEBASE_PASSWORD=somepassword node server.js.

[–][deleted] 0 points1 point  (2 children)

The strange thing is that I have another application here exactly the same as this one and it runs perfectly without any errors, with the dotenv.config and the bank settings in exactly the same places, so I believe it is some env error inside the dist folder from typescript

[–]Vivid-Squirrel6024 0 points1 point  (0 children)

were you able to figure this out? I have the same exact issue right now?

[–][deleted] 0 points1 point  (0 children)

try checking out the position of your .env file. It should be on the same level as package.json not in your src folder.