In my case i used pm2 to start my server and it somehow change relative path or something like that...
provide explicitly cwd option to pm2 from config or directly in terminal, for example:
pm2 start dist/main.js -- --name example --cwd /var/www/hope-it-will-help/app