I guess that you have to move the declaration of the class properties to the constructor. Below I made some changes to the code of the workaround that you’re using that might resolve the issue. Make sure to accordingly update the other files in your project too.
// app.js
// ...
export class SomeApp {
// This is not a valid JS syntax and have to be moved to the constructor.
//@ViewChild('rootNavController') nav:NavController;
// Specify the types of the constructor parameters here
// so that Angular 2 knows which providers to inject.
static get parameters() {
return [[Platform], [NavController]];
}
constructor(platform, @ViewChild('rootNavController') nav) {
this.nav = nav;
this.root = RootPage;
// ...
}
}