#How to reproduce ng serve --aot By default it fails. To make it work: go to app-routing.module.ts, uncomment line #21 comment out line #22.