TypeError: this.compiler.analyzeModules after rc2 upgrade


#1

So i followed changelog and upgraded to rc2.

Ionic serve works fine. RC1 worked fine.

ionic build android --release throws error:
[15:16:06] TypeError: this.compiler.analyzeModules is not a function
[15:16:06] ngc failed
[15:16:06] ionic-app-script task: “build”
[15:16:06] Error: Error

Any ideas? Help would be greatly appreciated.


#2

I’m getting the same error :confused:


#3

Getting the same error too.


#4

So,

looks like we can’t read …
Angular versions are pinned in the changelog, so when i used

@angular/common”: “2.1.1”,

instead of:

@angular/common”: “^2.1.1”,

it worked.

  • i also reinstalled ionic-cli.