2016-10-28 5 views
0

は、私はgithubの、ここで私の最初のアプリを持っていませんでした:私はAPKファイルにそれを構築しようとしている https://github.com/eshk12/firstAppビルドionic2アプリケーションは

が、それは失敗しました。 私はAndroid SDKをインストールして、アンドロイドプラットフォームをプロジェクトに追加しました。

しかし、私はそれらのエラーを取得し、私は何の問題を手掛かりがありません。

D:\ionic\firstApp>Ionic build android --v2 >> log.txt 
[17:17:14] Error: Error at D:/ionic/firstApp/.tmp/pages/currency/currency.ngfactory.ts:905:40 
[17:17:14] Property 'selectCurrencyInput' does not exist on type 'CurrencyPage'. 
[17:17:14] Error at D:/ionic/firstApp/.tmp/pages/currency/currency.ngfactory.ts:1200:43 
[17:17:14] Property 'selectCurrencyInput' does not exist on type 'CurrencyPage'. 
[17:17:14] Error at D:/ionic/firstApp/.tmp/pages/currency/currency.ngfactory.ts:1215:72 
[17:17:14] Property 'selectCurrencyInput' does not exist on type 'CurrencyPage'. 
[17:17:14] ngc failed 
[17:17:14] ionic-app-script task: "build" 
[17:17:14] Error: Error 

npm ERR! Windows_NT 10.0.14393 
npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build" 
npm ERR! node v6.3.0 
npm ERR! npm v3.10.3 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] build: `ionic-app-scripts build` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] build script 'ionic-app-scripts build'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the ionic-app-base package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  ionic-app-scripts build 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs ionic-app-base 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls ionic-app-base 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  D:\ionic\firstApp\npm-debug.log 
Caught exception: 
undefined 

Mind letting us know? https://github.com/driftyco/ionic-cli/issues 

viewあなたはselectCurrencyInput

<ion-select okText="אשר" cancelText="בטל" [(ngModel)]="selectCurrencyInput">

というプロパティを使用しているが、それはあなたのcomponent codeで宣言されていないで、あなたの助け

答えて

1

ためのTHX。

@Component({ 
    selector: 'currency-page', 
    templateUrl: 'currency.html', 
    providers: [NetworkServices] 
}) 
export class CurrencyPage { 
    public load: any; 
    public results: any; 
    public amount: any; 
    public keys: any; 

    public selectCurrencyInput: string; // <- add this property to fix the issue 

    constructor(public networkServices: NetworkServices) { 
    this.load = false; 
    } 

    // ... 
} 
+1

ありがとうございました! – itzikb

+0

それを聞いてうれしい:) – sebaferreras