[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
當我ionic cordova build android --prod
這個錯誤出來,但我可以ionic cordova build android or --release
沒有問題。TypeError:無法讀取屬性'codeGen'的undefined
谷歌半個月已經,仍然無法給出一個答案,不知道哪裏有問題
UPDATE:
當我更新離子-CLI預警現身
[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
離子資訊
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
在使用了選項1
好的..我現在就試試看,但你推薦哪一個?正常情況下,我使用ionic2,如果我更新到ionic3,它有什麼不同? –
如果您對ionic2感到滿意,那就選擇1即可。卸載並安裝非常穩定的ionic2.2.3。 –
我使用了選項1後,'ionic serve -l'無法使用,說:'-bash:/ usr/local/bin/ionic:沒有這樣的文件或目錄' –