The issue was resolved with adding the node buildpack (heroku/nodejs) in the Heroku settings, under buildpacks.