Hello,
I face some issue after the migration of project to ionic v3. In fact I followed the tutorial below to carry out the migration.
After I run my project ionic serve --lab
but it doesn't work, I have this error
I have this message, yet the package exists in the node_module directory
And in the console of my browser I can see that there is apparently a worry with an abstract class. Here is the code of the abstract class in question.
import {Injectable} from "@angular/core";
import {GlobalsConstants} from "../constants/globals.constants";
import {NavController, NavParams} from "ionic-angular";
@Injectable()
export abstract class AbstractLoggedPage {
protected logged: boolean;
protected loggedUser;
protected nav;
protected navParams;
constructor(navCtrl?: NavController, navParams?: NavParams) {
this.nav = navCtrl;
this.navParams = navParams;
this.loggedUser = JSON.parse(localStorage.getItem(GlobalsConstants.USER_LOGGED));
}
static checkLogin(): boolean {
return !!localStorage.getItem("logged");
}
ionViewCanEnter(): boolean{
if(AbstractLoggedPage.checkLogin()){
this.initData();
return true;
} else {
return false;
}
}
abstract initData();
}
Can anyone help me understand what is wrong ?