✗ 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: });
[23:26:32] typescript: src/pages/deposito/deposito.ts, line: 25
Property ‘option’ does not exist on type ‘DepositoPage’.
L24: constructor(public navCtrl: NavController, public navParams: NavParams,public webservice: WebserviceProvider) {
L25: this.option = "trans";
L26: this.getDeposit();
[23:26:32] typescript: src/pages/deposito/deposito.ts, line: 44
Property ‘BTC’ does not exist on type ‘Object’.
L43: this.webservice.getVolume().subscribe(data=>{
L44: this.volume = data.BTC.volume;
L45: this.price = data.BTC.last_sell_input;
[23:26:32] typescript: src/pages/deposito/deposito.ts, line: 45
Property ‘price’ does not exist on type ‘DepositoPage’.
L44: this.volume = data.BTC.volume;
L45: this.price = data.BTC.last_sell_input;
L46: this.last_sell_input = data.BTC.last_sell_input;
[23:26:32] typescript: src/pages/deposito/deposito.ts, line: 45
Property ‘BTC’ does not exist on type ‘Object’.
L44: this.volume = data.BTC.volume;
L45: this.price = data.BTC.last_sell_input;
L46: this.last_sell_input = data.BTC.last_sell_input;
[23:26:32] typescript: src/pages/deposito/deposito.ts, line: 46
Property ‘last_sell_input’ does not exist on type ‘DepositoPage’.
L45: this.price = data.BTC.last_sell_input;
L46: this.last_sell_input = data.BTC.last_sell_input;
L47: this.last_complete = data.BTC.last_sell_input;
[23:26:32] typescript: src/pages/deposito/deposito.ts, line: 46
Property ‘BTC’ does not exist on type ‘Object’.
L45: this.price = data.BTC.last_sell_input;
L46: this.last_sell_input = data.BTC.last_sell_input;
L47: this.last_complete = data.BTC.last_sell_input;
[23:26:32] typescript: src/pages/deposito/deposito.ts, line: 47
Property ‘BTC’ does not exist on type ‘Object’.
L46: this.last_sell_input = data.BTC.last_sell_input;
L47: this.last_complete = data.BTC.last_sell_input;
[23:26:32] typescript: src/pages/deposito/deposito.ts, line: 55
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?
L54: this.webservice.getDeposit().subscribe(data=>{
L55: this.dados = data;
L56: console.log(data);
[23:26:32] typescript: src/pages/deposito/deposito.ts, line: 55
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? Property ‘length’ is missing in type ‘Object’.
L54: this.webservice.getDeposit().subscribe(data=>{
L55: this.dados = data;
L56: console.log(data);
[23:26:32] typescript: src/pages/login/login.ts, line: 33
Property ‘status’ does not exist on type ‘Object’.
L32: this.webservice.login(this.conta).subscribe(data=>{
L33: if(data.status == true){
L34: this.webservice.updateTokenApp(data.token_app);
[23:26:32] typescript: src/pages/login/login.ts, line: 34
Property ‘token_app’ does not exist on type ‘Object’.
L33: if(data.status == true){
L34: this.webservice.updateTokenApp(data.token_app);
L35: this.navCtrl.setRoot(DashboardPage);
[23:26:32] typescript: src/pages/ordens/ordens.ts, line: 35
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?
L34: this.webservice.indexOrder().subscribe(data=>{
L35: this.dados = data;
L36: console.log(this.dados);
[23:26:32] typescript: src/pages/ordens/ordens.ts, line: 42
Argument of type ‘String’ is not assignable to parameter of type ‘Number’. Property ‘toFixed’ is missing in
type ‘String’.
L41: orderDelete(order_id: String){
L42: this.webservice.orderDelete(order_id).subscribe(data=>{
L43: this.message = data.message;
[23:26:32] typescript: src/pages/ordens/ordens.ts, line: 53
Property ‘BTC’ does not exist on type ‘Object’.
L52: this.webservice.getVolume().subscribe(data=>{
L53: this.volume = data.BTC.volume;
L54: this.price = data.BTC.last_buy_input;
[23:26:32] typescript: src/pages/ordens/ordens.ts, line: 54
Property ‘price’ does not exist on type ‘OrdensPage’.
L53: this.volume = data.BTC.volume;
L54: this.price = data.BTC.last_buy_input;
L55: this.last_complete = data.BTC.last_complete;
[23:26:32] typescript: src/pages/ordens/ordens.ts, line: 54
Property ‘BTC’ does not exist on type ‘Object’.
L53: this.volume = data.BTC.volume;
L54: this.price = data.BTC.last_buy_input;
L55: this.last_complete = data.BTC.last_complete;
[23:26:32] typescript: src/pages/ordens/ordens.ts, line: 55
Property ‘BTC’ does not exist on type ‘Object’.
L54: this.price = data.BTC.last_buy_input;
L55: this.last_complete = data.BTC.last_complete;
[23:26:32] typescript: src/pages/profile/profile.ts, line: 35
Property ‘lastname’ does not exist on type ‘Object’.
L34: this.webservice.index().subscribe(data=>{
L35: this.lastname = data.lastname;
L36: this.email = data.email;
[23:26:32] typescript: src/pages/profile/profile.ts, line: 36
Property ‘email’ does not exist on type ‘Object’.
L35: this.lastname = data.lastname;
L36: this.email = data.email;
L37: this.firstname = data.firstname;
[23:26:32] typescript: src/pages/profile/profile.ts, line: 37
Property ‘firstname’ does not exist on type ‘Object’.
L36: this.email = data.email;
L37: this.firstname = data.firstname;
L38: this.document_type = data.document_type;
[23:26:32] typescript: src/pages/profile/profile.ts, line: 38
Property ‘document_type’ does not exist on type ‘Object’.
L37: this.firstname = data.firstname;
L38: this.document_type = data.document_type;
L39: this.document_number = data.document_number;
[23:26:32] typescript: src/pages/profile/profile.ts, line: 39
Property ‘document_number’ does not exist on type ‘Object’.
L38: this.document_type = data.document_type;
L39: this.document_number = data.document_number;
L40: this.level = data.level;
[23:26:32] typescript: src/pages/profile/profile.ts, line: 40
Property ‘level’ does not exist on type ‘Object’.
L39: this.document_number = data.document_number;
L40: this.level = data.level;
[23:26:32] typescript: src/pages/register/register.ts, line: 53
Expected 6 arguments, but got 7.
L52: EfetuarRegistro(){
L53: this.webservice.criarConta(this.firstname, this.lastname , this.email,this.password,this.password_again, th
L54: if(data.status == true){
[23:26:32] typescript: src/pages/register/register.ts, line: 53
Property ‘document_numb’ does not exist on type ‘Register’. Did you mean ‘document_number’?
L52: EfetuarRegistro(){
L53: ame , this.email,this.password,this.password_again, this.document_type,this.document_numb).subscribe(data=>{
L54: if(data.status == true){
[23:26:32] typescript: src/pages/saque/saque.ts, line: 48
Argument of type ‘string’ is not assignable to parameter of type ‘Number’.
L47: createWithdrawal(){
L48: bservice.createWithdrawal(this.bank,this.agency,this.account,this.fullname,this.cpf,this.value).subscribe(da
L49: this.message = data.message;
[23:26:32] typescript: src/pages/saque/saque.ts, line: 55
Property ‘BTC’ does not exist on type ‘Object’.
L54: this.webservice.getVolume().subscribe(data=>{
L55: this.volume = data.BTC.volume;
L56: this.last_complete = data.BTC.last_sell_input;
[23:26:32] typescript: src/pages/saque/saque.ts, line: 56
Property ‘BTC’ does not exist on type ‘Object’.
L55: this.volume = data.BTC.volume;
L56: this.last_complete = data.BTC.last_sell_input;
L57: });
[23:26:32] typescript: src/pages/saque/saque.ts, line: 62
Property ‘limite2’ does not exist on type ‘Object’.
L61: this.webservice.getLimit().subscribe(data=>{
L62: this.limite2 = data.limite2;
L63: this.limite1 = data.limite1;
[23:26:32] typescript: src/pages/saque/saque.ts, line: 63
Property ‘limite1’ does not exist on type ‘Object’.
L62: this.limite2 = data.limite2;
L63: this.limite1 = data.limite1;
L64: console.log(this.limite2);
[23:26:32] typescript: src/pages/vender/vender.ts, line: 34
Duplicate identifier ‘last_complete’.
L33: public dados = [];
L34: last_complete ;
L35: constructor(public navCtrl: NavController,private decimalPipe: DecimalPipe, private toastCtrl: ToastController, public navParams: NavParams,public webservice: WebserviceProvider) {
[23:26:32] typescript: src/pages/vender/vender.ts, line: 34
Subsequent variable declarations must have the same type. Variable ‘last_complete’ must be of type ‘number’,
but here has type ‘any’.
L33: public dados = [];
L34: last_complete ;
L35: constructor(public navCtrl: NavController,private decimalPipe: DecimalPipe, private toastCtrl: ToastController, public navParams: NavParams,public webservice: WebserviceProvider) {
[23:26:32] typescript: src/pages/vender/vender.ts, line: 36
Property ‘option’ does not exist on type ‘VenderPage’.
L35: constructor(public navCtrl: NavController,private decimalPipe: DecimalPipe, private toastCtrl: ToastController, public navParams: NavParams,public webservice: WebserviceProvider) {
L36: this.option = "MERC";
L37: this.getVolume();
[23:26:32] typescript: src/pages/vender/vender.ts, line: 43
Duplicate function implementation.
L43: ionViewDidLoad() {
[23:26:32] typescript: src/pages/vender/vender.ts, line: 51
Property ‘getBalanceBTCTotalCoins’ does not exist on type ‘WebserviceProvider’.
L51: this.webservice.getBalanceBTCTotalCoins("BTC").subscribe(data=>{
L52: this.saldo = data;
[23:26:32] typescript: src/pages/vender/vender.ts, line: 63
Property ‘option’ does not exist on type ‘VenderPage’.
L62: tempreco(){
L63: if( this.option == "LMTD"){
L64: if(this.price <= 0){
[23:26:32] typescript: src/pages/vender/vender.ts, line: 70
Type ‘string’ is not assignable to type ‘number’.
L70: this.amount_to = this.decimals(this.amount_from*this.price);
L71: this.amount_to2 = this.amount_from*this.price;
[23:26:32] typescript: src/pages/vender/vender.ts, line: 72
Type ‘string’ is not assignable to type ‘number’.
L71: this.amount_to2 = this.amount_from*this.price;
L72: this.total_receber = this.decimals(this.amount_to2-(this.amount_to2*0.01))
L73: this.taxa = this.decimals(this.amount_to2*0.01);
[23:26:32] typescript: src/pages/vender/vender.ts, line: 73
Type ‘string’ is not assignable to type ‘number’.
L72: this.total_receber = this.decimals(this.amount_to2-(this.amount_to2*0.01))
L73: this.taxa = this.decimals(this.amount_to2*0.01);
[23:26:32] typescript: src/pages/vender/vender.ts, line: 81
Property ‘option’ does not exist on type ‘VenderPage’.
L81: if(this.option == "MERC"){
L82: this.atualiza();
[23:26:32] typescript: src/pages/vender/vender.ts, line: 83
Type ‘string’ is not assignable to type ‘number’.
L82: this.atualiza();
L83: this.amount_to = this.decimals(this.amount_from*this.price);
L84: this.amount_to2 = this.amount_from*this.price;
[23:26:32] typescript: src/pages/vender/vender.ts, line: 85
Type ‘string’ is not assignable to type ‘number’.
L84: this.amount_to2 = this.amount_from*this.price;
L85: this.total_receber = this.decimals(this.amount_to2-(this.amount_to2*0.01))
L86: this.taxa = this.decimals(this.amount_to2*0.01);
[23:26:32] typescript: src/pages/vender/vender.ts, line: 86
Type ‘string’ is not assignable to type ‘number’.
L85: this.total_receber = this.decimals(this.amount_to2-(this.amount_to2*0.01))
L86: this.taxa = this.decimals(this.amount_to2*0.01);
[23:26:32] typescript: src/pages/vender/vender.ts, line: 98
Property ‘option’ does not exist on type ‘VenderPage’.
L97: temMercado(){
L98: if(this.option != "MERC"){
L99: this.atualiza();
[23:26:32] typescript: src/pages/vender/vender.ts, line: 100
Property ‘option’ does not exist on type ‘VenderPage’.
L99: this.atualiza();
L100: this.option = "MERC"
[23:26:32] typescript: src/pages/vender/vender.ts, line: 106
Property ‘BTC’ does not exist on type ‘Object’.
L105: this.webservice.getVolume().subscribe(data=>{
L106: this.volume = data.BTC.volume;
[23:26:32] typescript: src/pages/vender/vender.ts, line: 108
Property ‘BTC’ does not exist on type ‘Object’.
L108: this.price = data.BTC.last_sell_input;
L109: this.last_sell_input = data.BTC.last_sell_input;
[23:26:32] typescript: src/pages/vender/vender.ts, line: 109
Property ‘BTC’ does not exist on type ‘Object’.
L108: this.price = data.BTC.last_sell_input;
L109: this.last_sell_input = data.BTC.last_sell_input;
L110: this.last_complete = data.BTC.last_sell_input;
[23:26:32] typescript: src/pages/vender/vender.ts, line: 110
Property ‘BTC’ does not exist on type ‘Object’.
L109: this.last_sell_input = data.BTC.last_sell_input;
L110: this.last_complete = data.BTC.last_sell_input;
[23:26:32] typescript: src/pages/vender/vender.ts, line: 117
Duplicate function implementation.
L117: ionViewDidLoad() {
L118: this.getBalanceBTC();
[23:26:32] typescript: src/pages/vender/vender.ts, line: 127
Type ‘string’ is not assignable to type ‘number’.
L126: usarSaldo(){
L127: this.amount_from = this.saldo;
[23:26:32] typescript: src/pages/vender/vender.ts, line: 131
Property ‘option’ does not exist on type ‘VenderPage’.
L130: sellOrder(){
L131: this.webservice.sellOrder(this.amount_from,this.amount_to,this.price,this.option ).subscribe(data=>{
L132: this.message = data.message;
[23:26:32] typescript: src/pages/vender/vender.ts, line: 132
Property ‘message’ does not exist on type ‘Object’.
L131: this.webservice.sellOrder(this.amount_from,this.amount_to,this.price,this.option ).subscribe(data=>{
L132: this.message = data.message;
L133: this.presentToast();
[23:26:32] typescript: src/pages/vender/vender.ts, line: 139
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?
L138: this.webservice.ordersSELL().subscribe(data=>{
L139: this.dados = data;
L140: });
[23:26:32] typescript: src/providers/webservice/webservice.ts, line: 4
Module ‘"/Users/lucaszimmermann/Desktop/www/4CoinsApp - cópia/src/interfaces/UserInterface"’ has no
exported member ‘UserInterface’.
L3: import { ContaInterface } from '../../interfaces/ContaInterface';
L4: import { UserInterface } from '../../interfaces/UserInterface';
[23:26:32] typescript: src/providers/webservice/webservice.ts, line: 83
Expected 1-2 arguments, but got 3.
L83: return this.http.get(this.url+'api/validation',
L84: {"token":this.token_app},
[23:26:32] typescript: src/providers/webservice/webservice.ts, line: 97
Expected 1-2 arguments, but got 3.
L97: return this.http.get(this.url+'api/validation',
L98: {"token":this.token_app},
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 ()
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
[23:26:32] copy finished in 5.93 s