2017-10-24 3 views
1

Ich habe andere ähnliche Fragen gesehen, bin aber immer noch verwirrt. Wenn ich meine app laufen ionic serve verwenden, meine Konsole sagt mir:Ionic: cordova-plugin-ionic plugin ist nicht installiert, wenn 'ionic plugin add' bereits installiert

ionic-pro.min.js:1 the cordova-plugin-ionic plugin is not installed. Install it for better device information for runtime errors. 

aber wenn ich laufe:

cordova plugin add cordova-plugin-ionic --variable APP_ID=app_id --variable CHANNEL_NAME=Production 

heißt es:

Plugin "cordova-plugin-ionic" already installed on android. 
Plugin "cordova-plugin-ionic" already installed on browser. 
Plugin "cordova-plugin-ionic" already installed on ios. 

Ich habe das Gefühl, das verbunden ist, eines meiner anderen Probleme, bei dem der Deploy-Dienst von Ionic Pro nicht wie erwartet funktioniert.

Hier ist meine Umgebung:

cli packages: (/usr/local/lib/node_modules) 

    @ionic/cli-utils : 1.14.0 
    ionic (Ionic CLI) : 3.14.0 

global packages: 

    cordova (Cordova CLI) : 7.0.1 

local packages: 

    @ionic/app-scripts : 2.1.4 
    Cordova Platforms : android 6.1.2 browser 4.1.0 ios 4.1.1 
    Ionic Framework : ionic-angular 3.0.1 

System: 

    ios-deploy : 1.9.1 
    ios-sim : 5.0.13 
    Node  : v6.11.0 
    npm  : 2.15.12 
    OS   : macOS Sierra 
    Xcode  : Xcode 9.0.1 Build version 9A1004 

Misc: 

    backend : pro 
+0

verwandt [github Problem] (https://github.com/ionic-team/cordova-plugin-ionic/issues/6). Sieht so aus, als müsstest du mit den Entwicklern dort nachsehen –

Antwort

0

In Ihrer app.component.ts Datei:

declare Rootpage Wert nach Plattform wie unten bereit.

export class MyApp { 
rootPage:any; 
constructor(platform: Platform, statusBar: StatusBar,splashScreen: SplashScreen) { 
platform.ready().then(() => { 
this.rootPage = HomePage; 
statusBar.styleDefault(); 
splashScreen.hide(); 
    }); 
    } 
}