Ионная подача команды на посадку на экран - PullRequest
0 голосов
/ 11 июля 2019

Я запускаю команду «Ионная подача», попав на пустой экран. Я установил все модули узла, используя «npm install» и после этого запустил «ionic serve»

[app-scripts] [11:28:17]  tslint: ...p_source_code/ionicecommerce_muzammul/src/pages/select-country/select-country.ts, line: 8
[app-scripts]             All imports on this line are unused.
[app-scripts]        L7:  import { ConfigProvider } from '../../providers/config/config';
[app-scripts]        L8:  import { Http } from '@angular/http';
[app-scripts]        L9:  import { LoadingProvider } from '../../providers/loading/loading';
[app-scripts] [11:28:17]  tslint: ...f/app_source_code/ionicecommerce_muzammul/src/pages/select-zones/select-zones.ts, line: 8
[app-scripts] [11:28:17]  tslint: .../Users/Saif/app_source_code/ionicecommerce_muzammul/src/auth/auththentication.ts, line: 2
[app-scripts] [11:28:17]  tslint: .../Users/Saif/app_source_code/ionicecommerce_muzammul/src/auth/auththentication.ts, line: 3
[app-scripts] [11:28:17]  tslint: .../Saif/app_source_code/ionicecommerce_muzammul/src/pages/my-account/my-account.ts, line: 53
[app-scripts]             All imports on this line are unused.
[app-scripts]        L7:  import { ConfigProvider } from '../../providers/config/config';
[app-scripts]        L8:  import { Http } from '@angular/http';
[app-scripts]        L9:  import { LoadingProvider } from '../../providers/loading/loading';
[app-scripts]             All imports on this line are unused.
[app-scripts]        L1:  import { Injectable } from '@angular/core';
[app-scripts]        L2:  import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
[app-scripts]        L3:  import { Observable } from 'rxjs/Observable';
[app-scripts]             All imports on this line are unused.
[app-scripts]        L2:  import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
[app-scripts]        L3:  import { Observable } from 'rxjs/Observable';
[app-scripts]        L4:  @Injectable()
[app-scripts]             'currenrtPassword' is declared but never used.
[app-scripts]       L52:  //this.shared.customerData.password="1234"
[app-scripts]       L53:  let currenrtPassword = this.myAccountData.currentPassword;
[app-scripts]       L54:  let newPassword = this.myAccountData.password;
[app-scripts]             'newPassword' is declared but never used.
[app-scripts]       L53:  let currenrtPassword = this.myAccountData.currentPassword;
[app-scripts]       L54:  let newPassword = this.myAccountData.password;
[app-scripts]       L55:  // console.log(currenrtPassword + "  " + newPassword);
[app-scripts]             'require' is declared but never used.
[app-scripts]       L22:  declare var braintree;
[app-scripts]       L23:  declare var require: any
[app-scripts]       L24:  declare var Buffer: any
[app-scripts]             'Buffer' is declared but never used.
[app-scripts]       L23:  declare var require: any
[app-scripts]       L24:  declare var Buffer: any
[app-scripts] [11:28:17]  tslint: .../Saif/app_source_code/ionicecommerce_muzammul/src/pages/my-account/my-account.ts, line: 54
[app-scripts] [11:28:17]  tslint: C:/Users/Saif/app_source_code/ionicecommerce_muzammul/src/pages/order/order.ts, line: 23
[app-scripts] [11:28:17]  tslint: C:/Users/Saif/app_source_code/ionicecommerce_muzammul/src/pages/order/order.ts, line: 24
[app-scripts] [11:28:17]  lint finished in 6.25 s

После запуска ионной подачи я получаю это в окне консоли и открываю пустой экран в браузере. Сервер разработки работает на локальном хосте: 8100

1 Ответ

0 голосов
/ 11 июля 2019

Эй, ваш код не используется declarations и imports

В вашем редакторе кода добавьте плагин с именем tslint, который покажет проблемы с линтами

EG: ->

import { LoadingProvider } from '../../providers/loading/loading';
[app-scripts]             All imports on this line are unused.
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...