2017-05-13 26 views
0

我有當我輸入以下代碼來構建我的應用程序,以生產 有人能幫助我在這個問題上我所有的項目停下來,因爲關閉此錯誤當構建用於生產的離子2

離子構建Android這個問題 - 督促

我得到這個錯誤

[22:09:48] ionic-app-script task: "build" 
 
[22:09:48] TypeError: Cannot read property 'codeGen' of undefined 
 
TypeError: Cannot read property 'codeGen' of undefined 
 
at Object.doCodegen (/Users/ali/Desktop/ionic 2 fin/test/node_modules/@ionic/app-scripts/dist/aot/codegen.js:6:50) 
 
at /Users/ali/Desktop/ionic 2 fin/test/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:42:30

我小號ystem信息是

Cordova CLI: 6.5.0 
 
Ionic Framework Version: 2.0.0-rc.4 
 
Ionic CLI Version: 2.2.2 
 
Ionic App Lib Version: 2.2.1 
 
Ionic App Scripts Version: 1.3.4 
 
ios-deploy version: Not installed 
 
ios-sim version: 5.0.13 
 
OS: macOS Sierra 
 
Node Version: v6.10.2 
 
Xcode version: Xcode 8.2.1 Build version 8C1002

的package.json

{ 
 
"name": "ionic-hello-world", 
 
"author": "Ionic Framework", 
 
"homepage": "http://ionicframework.com/", 
 
"private": true, 
 
"scripts": { 
 
"ionic:build": "ionic-app-scripts build", 
 
"ionic:serve": "ionic-app-scripts serve" 
 
}, 
 
"dependencies": { 
 
"@angular/common": "2.2.1", 
 
"@angular/compiler": "2.2.1", 
 
"@angular/compiler-cli": "2.2.1", 
 
"@angular/core": "2.2.1", 
 
"@angular/forms": "2.2.1", 
 
"@angular/http": "2.2.1", 
 
"@angular/platform-browser": "2.2.1", 
 
"@angular/platform-browser-dynamic": "2.2.1", 
 
"@angular/platform-server": "2.2.1", 
 
"@ionic/storage": "1.1.6", 
 
"ionic-angular": "2.0.0-rc.4", 
 
"ionic-native": "2.2.11", 
 
"ionicons": "3.0.0", 
 
"ngrx-store-localstorage": "^0.1.6", 
 
"rxjs": "5.0.0-beta.12", 
 
"zone.js": "0.6.26" 
 
}, 
 
"devDependencies": { 
 
"@ionic/app-scripts": "^1.3.4", 
 
"typescript": "2.0.9" 
 
}, 
 
"cordovaPlugins": [ 
 
"ionic-plugin-keyboard", 
 
"cordova-plugin-whitelist", 
 
"cordova-plugin-console", 
 
"cordova-plugin-statusbar", 
 
"cordova-plugin-splashscreen", 
 
"cordova-plugin-device" 
 
], 
 
"cordovaPlatforms": [], 
 
"description": "PHPCRUD: An Ionic project" 
 
}

+0

你是如何解決你的問題的? –

回答