Pisix
June 22, 2017, 5:32am
1
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.
## [4.8.1](https://github.com/ionic-team/ionic/compare/v4.8.0...v4.8.1) (2019-08-27)
### Bug Fixes
* **animation:** enable backwards compatibility for overlay animations ([#19160](https://github.com/ionic-team/ionic/issues/19160)) ([fb70980](https://github.com/ionic-team/ionic/commit/fb70980))
* **gesture:** account for negative step values with Web Animations ([#19196](https://github.com/ionic-team/ionic/issues/19196)) ([b3c7436](https://github.com/ionic-team/ionic/commit/b3c7436))
* **ios:** clear opacity on toolbar background after iOS transition ([#19169](https://github.com/ionic-team/ionic/issues/19169)) ([fa958a5](https://github.com/ionic-team/ionic/commit/fa958a5))
* **md:** set fill mode on MD transition to `both` ([#19161](https://github.com/ionic-team/ionic/issues/19161)) ([0e8ab49](https://github.com/ionic-team/ionic/commit/0e8ab49))
# [4.8.0 Oxygen](https://github.com/ionic-team/ionic/compare/v4.7.4...v4.8.0) (2019-08-21)
### Bug Fixes
* **alert:** apply styling to disabled items ([#18545](https://github.com/ionic-team/ionic/issues/18545)) ([67ed89d](https://github.com/ionic-team/ionic/commit/67ed89d))
* **platform:** properly detect Electron platform ([#19044](https://github.com/ionic-team/ionic/issues/19044)) ([e8cdda0](https://github.com/ionic-team/ionic/commit/e8cdda0)), closes [#19043](https://github.com/ionic-team/ionic/issues/19043)
* **toggle:** change background to use CSS variable ([#19012](https://github.com/ionic-team/ionic/issues/19012)) ([94e525c](https://github.com/ionic-team/ionic/commit/94e525c)), closes [#18940](https://github.com/ionic-team/ionic/issues/18940)
This file has been truncated. show original
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 ?
Anthra
June 22, 2017, 6:20am
2
Same issue i faced. Solved it using the command in the following link
Ionic CLI v3 Beta
What is your ionic info
output and package.json
content?
Pisix
June 22, 2017, 8:59pm
4
ionic info
global packages:
@ionic/cli-utils : 1.4.0
Ionic CLI : 3.4.0
local packages:
@ionic/app-scripts : 1.3.7
@ionic/cli-plugin-ionic-angular : 1.3.1
Ionic Framework : ionic-angular 3.4.2
System:
Node : v7.8.0
OS : macOS Sierra
Xcode : Xcode 8.3.3 Build version 8E3004b
ios-deploy : 1.9.1
ios-sim : not installed
npm : 4.2.0
Package.json
Have you tried deleting node_modules
and running npm install
?
Pisix
June 24, 2017, 3:25pm
8
Yes I did it but it did not change much, the error persists
Do you somewhere import this module in your code?
Does it actually exist in node_modules?