[09:11:17] build prod started ...
[09:11:17] clean started ...
[09:11:17] clean finished in 2 ms
[09:11:17] copy started ...
[09:11:17] ngc started ...
TypeError: Cannot read property 'codeGen' of undefined
lesen Wenn ich ionic cordova build android --prod
diese Fehler herauskommen, aber ich kann ionic cordova build android or --release
ohne Problem.Typeerror: kann Eigenschaft ‚CODEGEN‘ undefinierten
google schon halb Monat, immer noch keine Antwort geben kann, weiß nicht, wo Problem bekam
UPDATE:
Wenn ich aktualisieren Ionic-CLI Warnung
kommen aus[WARN] Detected @ionic/cli-plugin-cordova in your package.json.
As of CLI 3.8, it is no longer needed. You can uninstall it:
npm uninstall --save-dev --save-exact @ionic/cli-plugin-cordova
[WARN] Detected @ionic/cli-plugin-ionic-angular in your package.json.
As of CLI 3.8, it is no longer needed. You can uninstall it:
npm uninstall --save-dev --save-exact @ionic/cli-plugin-ionic-angular
ionische info
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.1.3
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 2.0.0
System:
ios-deploy : 1.9.1
ios-sim : 6.0.0
Node : v6.11.0
npm : 3.10.10
OS : macOS Sierra
Xcode : Xcode 8.3.3 Build version 8E3004b
Nach der Option 1
ok .. ich werde es jetzt versuchen, aber welche Sie perfer? Nomally verwende ich ionic2, wenn ich auf ionic3 aktualisiere, ist es anders geworden? –
Wenn Sie mit ionic2 vertraut sind, dann gehen Sie mit Option 1, dh. Deinstallieren und installieren Sie ionic2.2.3, das sehr stabil ist. –
Nachdem ich Option 1 verwendet, kann 'ionic serve -l' nicht verwenden, sagte: '-bash:/usr/local/bin/ionic: Keine solche Datei oder Verzeichnis' –