I like to use typescript 2.1 (which is right now in the @next channel) because it enables me to use async/await while still targeting ES5. Anyway, when using ionic build, i.e. the ngc AOT compiler, the build breaks with > [14:39:02] Error: Error at /Users/chris/Sites/emmaus-app/.tmp/app/main.prod.ts:4:36 > [14:39:02] Cannot find module './app.module.ngfactory'. > [14:39:02] ngc failed > [14:39:02] ionic-app-script task: "build" > [14:39:02] Error: Error Downgrading to typescript 2.0.3 solves the problem.
I like to use typescript 2.1 (which is right now in the @next channel) because it enables me to use async/await while still targeting ES5.
Anyway, when using ionic build, i.e. the ngc AOT compiler, the build breaks with
Downgrading to typescript 2.0.3 solves the problem.