you need try catch here, to handle syntax errors etc in the config file (also you can remove the existsSync() once you have try catch)