Erro na hora do build do ionic 3

03/04/2018

7

quando eu rodo o comando pra dar build ele da estes erros sao muitos = https://imgur.com/a/7YcCw , mas quando eu rodo o ionic serve ele roda tranquilo sem erros!
Responder

Posts

✗ ionic cordova build ios
Running app-scripts build: --platform ios --target cordova
[23:26:25] build dev started ...
[23:26:26] clean started ...
[23:26:26] clean finished in 2 ms
[23:26:26] copy started ...
[23:26:26] deeplinks started ...
[23:26:26] deeplinks finished in 132 ms
[23:26:26] transpile started ...
[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 4
Cannot find module '../../interfaces/OrderInterfaces'.

L3: import { WebserviceProvider } from '../../providers/webservice/webservice';
L4: import { OrderInterface } from '../../interfaces/OrderInterfaces';
L5: import { AlertController } from 'ionic-angular';

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 41
Property 'option' does not exist on type 'ComprarPage'.

L40: this.getVolume();
L41: this.option = "MERC";
L42: this.buyOrders();

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 43
Type 'string' is not assignable to type 'number'.

L42: this.buyOrders();
L43: this.amount_to = this.decimals(this.amount_to);
L44: this.total_receber = this.decimals(this.total_receber);

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 44
Type 'string' is not assignable to type 'number'.

L43: this.amount_to = this.decimals(this.amount_to);
L44: this.total_receber = this.decimals(this.total_receber);
L45: this.taxa = this.decimals(this.taxa);

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 45
Type 'string' is not assignable to type 'number'.

L44: this.total_receber = this.decimals(this.total_receber);
L45: this.taxa = this.decimals(this.taxa);

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 68
Property 'option' does not exist on type 'ComprarPage'.

L67: tempreco(){
L68: if( this.option == "LMTD"){
L69: if(this.price <= 0){

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 76
Type 'string' is not assignable to type 'number'.

L75: if(this.amount_from >= 0){
L76: this.amount_to = this.decimals(this.amount_from/this.price);
L77: this.total_receber = this.decimals(this.amount_to-(this.amount_to*0.01));

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 77
Type 'string' is not assignable to type 'number'.

L76: this.amount_to = this.decimals(this.amount_from/this.price);
L77: this.total_receber = this.decimals(this.amount_to-(this.amount_to*0.01));
L78: this.taxa = this.decimals(this.amount_to*0.01);

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 78
Type 'string' is not assignable to type 'number'.

L77: this.total_receber = this.decimals(this.amount_to-(this.amount_to*0.01));
L78: this.taxa = this.decimals(this.amount_to*0.01);
L79: return false;

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 86
Property 'option' does not exist on type 'ComprarPage'.

L86: if(this.option == "MERC"){
L87: this.atualiza();

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 89
Type 'string' is not assignable to type 'number'.

L88: if(this.amount_from >= 0){
L89: this.amount_to = this.decimals(this.amount_from/this.price);
L90: this.total_receber = this.decimals(this.amount_to-(this.amount_to*0.01));

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 90
Type 'string' is not assignable to type 'number'.

L89: this.amount_to = this.decimals(this.amount_from/this.price);
L90: this.total_receber = this.decimals(this.amount_to-(this.amount_to*0.01));
L91: this.taxa = this.decimals(this.amount_to*0.01);

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 91
Type 'string' is not assignable to type 'number'.

L90: this.total_receber = this.decimals(this.amount_to-(this.amount_to*0.01));
L91: this.taxa = this.decimals(this.amount_to*0.01);
L92: return false;

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 103
Property 'option' does not exist on type 'ComprarPage'.

L102: temMercado(){
L103: if(this.option != "MERC"){
L104: this.atualiza();

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 105
Property 'option' does not exist on type 'ComprarPage'.

L104: this.atualiza();
L105: this.option = "MERC"

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 111
Property 'BTC' does not exist on type 'Object'.

L110: this.webservice.getVolume().subscribe(data=>{
L111: this.volume = data.BTC.volume;
L112: this.price = data.BTC.last_sell_input;

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 112
Property 'BTC' does not exist on type 'Object'.

L111: this.volume = data.BTC.volume;
L112: this.price = data.BTC.last_sell_input;
L113: this.last_sell_input = data.BTC.last_sell_input;

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 113
Property 'BTC' does not exist on type 'Object'.

L112: this.price = data.BTC.last_sell_input;
L113: this.last_sell_input = data.BTC.last_sell_input;
L114: this.last_complete = data.BTC.last_sell_input;

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 114
Property 'BTC' does not exist on type 'Object'.

L113: this.last_sell_input = data.BTC.last_sell_input;
L114: this.last_complete = data.BTC.last_sell_input;

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 123
Expected 0 arguments, but got 1.

L122: getBalance(){
L123: this.webservice.getBalanceTotalCoins("BRL").subscribe(data=>{

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 133
Property 'option' does not exist on type 'ComprarPage'.

L132: buyOrder(){
L133: this.webservice.buyOrder(this.amount_from,this.amount_to,this.price,this.option ).subscribe(data=>{
L134: this.message = data.message;

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 134
Property 'message' does not exist on type 'Object'.

L133: this.webservice.buyOrder(this.amount_from,this.amount_to,this.price,this.option ).subscribe(data=>{
L134: this.message = data.message;
L135: this.presentToast();

[23:26:32] typescript: src/pages/comprar/comprar.ts, line: 155
Type 'Object' is not assignable to type 'any[]'. The 'Object' type is assignable to very few other types.
Did you mean to use the 'any' type instead?

L154: this.webservice.BuyOrders().subscribe(data=>{
L155: this.dados = data;
L156: });

Error: Failed to transpile program
at new BuildError (/Users/lucaszimmermann/Desktop/www/4CoinsApp - cópia/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
at /Users/lucaszimmermann/Desktop/www/4CoinsApp - cópia/node_modules/@ionic/app-scripts/dist/transpile.js:159:20
at new Promise (<anonymous>)
at transpileWorker (/Users/lucaszimmermann/Desktop/www/4CoinsApp - cópia/node_modules/@ionic/app-scripts/dist/transpile.js:107:12)
at Object.transpile (/Users/lucaszimmermann/Desktop/www/4CoinsApp - cópia/node_modules/@ionic/app-scripts/dist/transpile.js:64:12)
at /Users/lucaszimmermann/Desktop/www/4CoinsApp - cópia/node_modules/@ionic/app-scripts/dist/build.js:109:82
at <anonymous>
Responder

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários. Para saber mais sobre o uso de cookies,
consulte nossa política de privacidade. Ao continuar navegando em nosso site, você concorda com a nossa política.

Aceitar