Based on this guide I am trying to deploy in Heroku my angular application but it fails during the build (ng build --prod) with the below error:
ng build --prod