Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

ionic build does not work with typescript@next (>= 2.1) #197

@chriswep

Description

@chriswep

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions