Could not load js config file config/database.js: Cannot read property ' charAt' of undefined

Yes, it’s a true answer to this problem.
Also, I researched that when you configured and attached the database, DATABASE_URL is automatically attached to the env file and only available during run time.
Then I deleted DATABASE_URL from envs.
And then manually I added the DATABASE_URL variable to envs again. So there will be RUN_AND_BUILD_TIME

2 Likes