Steps to reproduce: With ng serve --prod` the app loads When serving those the files being outputed by ng build --prod the app fails with an error.