APP Deploying problems

Tagged: 

This topic contains 7 replies, has 3 voices, and was last updated by  Alex 1 year, 4 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #10819

    Daniel
    Participant

    tslint: ~wplms/src/services/config.ts, line: 2

    All imports are unused.

     

    L1: import { Injectable } from ‘@angular/core’;

    L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    L3: import { Storage } from ‘@ionic/storage’;

     

    tslint: ~wplms/src/services/config.ts, line: 3

    All imports are unused.

     

    L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    L3: import { Storage } from ‘@ionic/storage’;

     

    tslint: ~wplms/src/models/user.ts, line: 1

    All imports are unused.

     

    L1: import { Course } from ‘./course’;

     

    tslint: ~wplms/src/services/authentication.ts, line: 41

    ‘fbObservable’ is declared but its value is never read.

     

    L40: private observable: Observable; //Tracks request in progress

    L41: private fbObservable: Observable; //fb Login

    L42: private baseUrl;

     

    tslint: ~wplms/src/services/authentication.ts, line: 108

    ‘getHeaders’ is declared but its value is never read.

     

    L108: private getHeaders(){

    L109: this.headers = this.storage.get(‘token’).then((token) => {

     

    tslint: ~wplms/src/services/authentication.ts, line: 255

    ‘obj’ is declared but its value is never read.

     

    L254: let permissions = [“public_profile”,”email”];

    L255: let obj = {};

    L256: //let env = this;

     

    tslint: ~wplms/src/services/authentication.ts, line: 2

    ‘Http’ is declared but its value is never read.

     

    L1: import { Injectable, } from ‘@angular/core’;

    L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    L3: import { Platform, LoadingController, ToastController } from ‘ionic-angular’;

     

    tslint: ~wplms/src/services/authentication.ts, line: 2

    ‘Response’ is declared but its value is never read.

     

    L1: import { Injectable, } from ‘@angular/core’;

    L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    L3: import { Platform, LoadingController, ToastController } from ‘ionic-angular’;

     

    tslint: ~wplms/src/services/authentication.ts, line: 2

    ‘URLSearchParams’ is declared but its value is never read.

     

    L1: import { Injectable, } from ‘@angular/core’;

    L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    L3: import { Platform, LoadingController, ToastController } from ‘ionic-angular’;

     

    tslint: ~wplms/src/services/authentication.ts, line: 14

    All imports are unused.

     

    L14: import { TabsPage } from ‘../pages/tabs/tabs’;

     

    tslint: ~wplms/src/services/authentication.ts, line: 16

    All imports are unused.

     

    L16: import { Storage } from ‘@ionic/storage’;

    L17: import { Device } from ‘@ionic-native/device’;

     

    tslint: ~wplms/src/services/activity.ts, line: 28

    ‘observable’ is declared but its value is never read.

     

    L27: private lastpushed:number=0;

    L28: private observable: Observable; //Tracks request in progress

     

    tslint: ~wplms/src/services/activity.ts, line: 32

    Property ‘platform’ is declared but its value is never read.

     

    L31: private http:Http,

    L32: private platform : Platform,

    L33: private storage: Storage,

     

    tslint: ~wplms/src/services/activity.ts, line: 2

    All imports are unused.

     

    L1: import { Injectable } from ‘@angular/core’;

    L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    L3: import { Platform } from ‘ionic-angular’;

     

    tslint: ~wplms/src/services/activity.ts, line: 8

    All imports are unused.

     

    L7: import ‘rxjs/add/observable/of’;

    L8: import { DatePipe } from ‘@angular/common’;

     

    tslint: ~wplms/src/services/activity.ts, line: 11

    All imports are unused.

     

    L10: import { Activity } from “../models/activity”;

    L11: import { ActivityMeta } from “../models/activity”;

     

    tslint: ~wplms/src/services/activity.ts, line: 16

    All imports are unused.

     

    L16: import { Storage } from ‘@ionic/storage’;

     

    tslint: ~wplms/src/services/course.ts, line: 32

    ‘observable’ is declared but its value is never read.

     

    L32: private observable: Observable; //Tracks request in progress

    L33: private allcoursesobservable: Observable;

     

    tslint: ~wplms/src/services/course.ts, line: 62

    ‘extractData’ is declared but its value is never read.

     

    L62: private extractData(response: Response) {

    L63: let body = response.json();

     

    tslint: ~wplms/src/services/course.ts, line: 74

    ‘handleError’ is declared but its value is never read.

     

    L74: private handleError(error: Response) {

    L75: console.log(error);

     

    tslint: ~wplms/src/services/course.ts, line: 94

    ‘count’ is declared but its value is never read.

     

    L94: let count:number=0;

    L95: count = paged*this.config.settings.per_view – this.courses.length;

     

    tslint: ~wplms/src/services/course.ts, line: 165

    ‘res’ is declared but its value is never read.

     

    L164: let body = response.json();

    L165: let res=[];

    L166: this.catobservable = null;

     

    tslint: ~wplms/src/services/course.ts, line: 201

    ‘res’ is declared but its value is never read.

     

    L200: let body = response.json();

    L201: let res=[];

    L202: this.locobservable = null;

     

    tslint: ~wplms/src/services/course.ts, line: 239

    ‘res’ is declared but its value is never read.

     

    L238: let body = response.json();

    L239: let res=[];

    L240: this.levobservable = null;

     

    tslint: ~wplms/src/services/course.ts, line: 300

    ‘k’ is declared but its value is never read.

     

    L299: }else{

    L300: let k = 0;

    L301: if(this.fullCourses){

     

    tslint: ~wplms/src/services/course.ts, line: 302

    ‘k’ is declared but its value is never read.

     

    L301: if(this.fullCourses){

    L302: let k = this.fullCourses.length;

     

    tslint: ~wplms/src/services/course.ts, line: 561

    ‘getIndexByKeyValue’ is declared but its value is never read.

     

    L561: private getIndexByKeyValue(arraytosearch, key, valuetosearch) {

     

    tslint: ~wplms/src/services/course.ts, line: 571

    ‘copyobject’ is declared but its value is never read.

     

    L571: private copyobject(srcObj:any, destObj:any) {

    L572: for (var key in destObj) {

     

    tslint: ~wplms/src/services/course.ts, line: 1

    ‘OnInit’ is declared but its value is never read.

     

    L1: import { Injectable, OnInit } from ‘@angular/core’;

    L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

     

    tslint: ~wplms/src/services/course.ts, line: 2

    ‘Http’ is declared but its value is never read.

     

    L1: import { Injectable, OnInit } from ‘@angular/core’;

    L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

     

    tslint: ~wplms/src/services/course.ts, line: 2

    ‘Headers’ is declared but its value is never read.

     

    L1: import { Injectable, OnInit } from ‘@angular/core’;

    L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

     

    tslint: ~wplms/src/services/course.ts, line: 2

    ‘Response’ is declared but its value is never read.

     

    L1: import { Injectable, OnInit } from ‘@angular/core’;

    L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

     

    tslint: ~wplms/src/services/course.ts, line: 2

    ‘RequestOptions’ is declared but its value is never read.

     

    L1: import { Injectable, OnInit } from ‘@angular/core’;

    L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

     

    tslint: ~wplms/src/services/course.ts, line: 10

    All imports are unused.

     

    L10: import { Storage } from ‘@ionic/storage’;

     

    tslint: ~wplms/src/services/users.ts, line: 2

    All imports are unused.

     

    L1: import { Injectable} from ‘@angular/core’;

    L2: import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    L3: import ‘rxjs/add/operator/map’;

     

    tslint: ~wplms/src/services/users.ts, line: 6

    All imports are unused.

     

    L5: import ‘rxjs/add/observable/of’;

    L6: import { CacheService } from “ionic-cache”;

    L7: import { ToastController} from ‘ionic-angular’;

     

    tslint: ~wplms/src/services/users.ts, line: 18

    All imports are unused.

     

    L18: import { Storage } from ‘@ionic/storage’;

    L19: import { ConfigService } from “./config”;

     

    tslint: ~wplms/src/services/blog.ts, line: 2

    All imports are unused.

    #10820

    Daniel
    Participant

    L1: import { Injectable } from ‘@angular/core’;

    #10821

    Daniel
    Participant

    I have some error when I start Ionic Serve

    Error Console Line

    #10840

    Alex
    Keymaster

    Ok please try to open this url in your chrome browser : http://localhost:8100 .

    I checked all the errors .all these are ok you ca ignore this .

    #10849

    Daniel
    Participant

    it’s okay, no error but when I try to package the apk in android studio say this:

    ~\AndroidStudioProjects\wplms>ionic cordova run android –prod –release

    > cordova platform add android –save

    Using cordova-fetch for [email protected]~7.0.0

     

    Adding android project…

     

    Creating Cordova project for the Android platform:

     

    Path: platforms\android

    Package: io.ionic.starter

    Name: wplms

    Activity: MainActivity

    Android target: android-26

    Subproject Path: CordovaLib

    Subproject Path: app

    Android project created with [email protected]

     

    Android Studio project detected

     

    Android Studio project detected

     

    Installing “cordova-plugin-device” for android

     

    Installing “cordova-plugin-facebook4” for android

     

    Subproject Path: CordovaLib

    Subproject Path: app

    Installing “cordova-plugin-file” for android

     

     

    The Android Persistent storage location now defaults to “Internal”. Please check this plugin’s README to see if your application needs any changes in its config.xml.

     

    If this is a new application no changes are required.

     

    If this is an update to an existing application that did not specify an “AndroidPersistentFileLocation” you may need to add:

     

    “<preference name=”AndroidPersistentFileLocation” value=”Compatibility” />”

     

    to config.xml in order for the application to find previously stored files.

     

     

    Installing “cordova-plugin-file-transfer” for android

    Plugin dependency “[email protected]” already fetched, using that version.

    Dependent plugin “cordova-plugin-file” already installed on android.

     

    Installing “cordova-plugin-googleplus” for android

     

    Subproject Path: CordovaLib

    Subproject Path: app

    Installing “cordova-plugin-inappbrowser” for android

    Installing “cordova-plugin-inapppurchase” for android

    Discovered plugin “cordova-plugin-whitelist” in config.xml. Adding it to the project

    Installing “cordova-plugin-whitelist” for android

     

     

    This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the white

    list will be built in.

     

     

    Adding cordova-plugin-whitelist to package.json

     

    Saved plugin info for “cordova-plugin-whitelist” to config.xml

     

    Discovered plugin “cordova-plugin-splashscreen” in config.xml. Adding it to the project

    Installing “cordova-plugin-splashscreen” for android

     

    Adding cordova-plugin-splashscreen to package.json

     

    Saved plugin info for “cordova-plugin-splashscreen” to config.xml

     

    Discovered plugin “cordova-plugin-ionic-webview” in config.xml. Adding it to the project

     

    Installing “cordova-plugin-ionic-webview” for android

     

    Adding cordova-plugin-ionic-webview to package.json

     

    Saved plugin info for “cordova-plugin-ionic-webview” to config.xml

     

    Discovered plugin “cordova-plugin-ionic-keyboard” in config.xml. Adding it to the project

    Installing “cordova-plugin-ionic-keyboard” for android

     

    Adding cordova-plugin-ionic-keyboard to package.json

     

    Saved plugin info for “cordova-plugin-ionic-keyboard” to config.xml

     

    –save flag or autosave detected

     

    Saving [email protected]~7.0.0 into config.xml file …

     

    Running app-scripts build: –prod –platform android –target cordova

    [18:09:34]  build prod started …

    [18:09:34]  clean started …

    [18:09:34]  clean finished in 7 ms

    [18:09:34]  copy started …

    [18:09:34]  deeplinks started …

    [18:09:35]  deeplinks finished in 305 ms

    [18:09:35]  ngc started …

    [18:09:42]  typescript error

    Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by

    using ‘barrel’ index.ts files.

     

    Error: The Angular AoT build failed. See the issues above

    at ~\AndroidStudioProjects\wplms\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:237:55

    at step (~\AndroidStudioProjects\wplms\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:32:23)

    at Object.next (~\AndroidStudioProjects\wplms\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:13:53)

    at fulfilled (~\AndroidStudioProjects\wplms\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:4:58)

    at <anonymous>

    [18:09:42]  copy finished in 8.08 s

     

    ~\AndroidStudioProjects\wplms>ionic cordova build android –prod –release

    Running app-scripts build: –prod –platform android –target cordova

    [18:14:29]  build prod started …

    [18:14:29]  clean started …

    [18:14:29]  clean finished in 3 ms

    [18:14:29]  copy started …

    [18:14:29]  deeplinks started …

    [18:14:29]  deeplinks finished in 356 ms

    [18:14:29]  ngc started …

    [18:14:35]  typescript error

    Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by

    using ‘barrel’ index.ts files.

     

    Error: The Angular AoT build failed. See the issues above

    at ~\AndroidStudioProjects\wplms\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:237:55

    at step (~\AndroidStudioProjects\wplms\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:32:23)

    at Object.next (~\AndroidStudioProjects\wplms\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:13:53)

    at fulfilled (~\AndroidStudioProjects\wplms\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:4:58)

    at <anonymous>

    [18:14:35]  copy finished in 6.44 s

    #10878

    Alex
    Keymaster

     

    Ok please run the commands to install the packages again in your ionic project folder : https://wplms.io/unit/installing-app-packages/?id=641

    Add this line in your config.xml :

     <preference name="AndroidPersistentFileLocation" value="Compatibility" />

     

    After that please run these commands :

    cordova platform rm android

     

    cordova platform add android

     

     

     

    #13761

    tayzar
    Participant

    I also deploying app failed with this error

     

    $ ionic cordova build android

    Running app-scripts build: –platform android –target cordova

    [16:07:51]  build dev started …

    [16:07:52]  clean started …

    [16:07:52]  clean finished in 60 ms

    [16:07:52]  copy started …

    [16:07:53]  deeplinks started …

    [16:07:54]  deeplinks finished in 590 ms

    [16:07:54]  transpile started …

    [16:08:21]  transpile finished in 27.46 s

    [16:08:21]  preprocess started …

    [16:08:21]  preprocess finished in 1 ms

    [16:08:21]  webpack started …

    [16:08:22]  copy finished in 30.06 s

    [16:08:40]  webpack finished in 18.61 s

    [16:08:40]  sass started …

    Without from option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to undefined to prevent this warning.

    [16:08:52]  sass finished in 12.22 s

    [16:08:52]  postprocess started …

    [16:08:52]  postprocess finished in 58 ms

    [16:08:52]  lint started …

    [16:08:52]  build dev finished in 60.76 s

    > cordova build android

    Android Studio project detected

     

    ANDROID_HOME=C:\Fairway\Android\Android-SDK

    JAVA_HOME=C:\Fairway\Android\Java\jdk1.8.0_111

    studio

    The system cannot find the path specified.

    (node:10484) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1

    at ChildProcess.whenDone (D:\ionic\wplms\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)

    at emitTwo (events.js:126:13)

    at ChildProcess.emit (events.js:214:7)

    at maybeClose (internal/child_process.js:925:16)

    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

    (node:10484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

    (node:10484) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/config.ts, line: 2

    All imports on this line are unused.

     

    L1:  import { Injectable } from ‘@angular/core’;

    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    L3:  import { Storage } from ‘@ionic/storage’;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/config.ts, line: 3

    All imports on this line are unused.

     

    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    L3:  import { Storage } from ‘@ionic/storage’;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/models/user.ts, line: 1

    All imports on this line are unused.

     

    L1:  import { Course } from ‘./course’;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/authentication.ts, line: 41

    ‘fbObservable’ is declared but its value is never read.

     

    L40:  private observable: Observable<any>; //Tracks request in progress

    L41:     private fbObservable: Observable<any>; //fb Login

    L42:     private baseUrl;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/authentication.ts, line: 108

    ‘getHeaders’ is declared but its value is never read.

     

    L108:      private getHeaders(){

    L109:          this.headers = this.storage.get(‘token’).then((token) => {

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/authentication.ts, line: 247

    ‘obj’ is declared but its value is never read.

     

    L246:  let  permissions = [“public_profile”,”email”];

    L247:  let obj = {};

    L248:  //let env = this;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/authentication.ts, line: 2

    ‘Http’ is declared but its value is never read.

     

    L1:  import { Injectable,  } from ‘@angular/core’;

    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    L3:  import { Platform, LoadingController, ToastController } from ‘ionic-angular’;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/authentication.ts, line: 2

    ‘Response’ is declared but its value is never read.

     

    L1:  import { Injectable,  } from ‘@angular/core’;

    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    L3:  import { Platform, LoadingController, ToastController } from ‘ionic-angular’;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/authentication.ts, line: 2

    ‘URLSearchParams’ is declared but its value is never read.

     

    L1:  import { Injectable,  } from ‘@angular/core’;

    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    L3:  import { Platform, LoadingController, ToastController } from ‘ionic-angular’;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/authentication.ts, line: 14

    All imports on this line are unused.

     

    L14:  import { TabsPage } from ‘../pages/tabs/tabs’;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/authentication.ts, line: 16

    All imports on this line are unused.

     

    L16:  import { Storage } from ‘@ionic/storage’;

    L17:  import { Device } from ‘@ionic-native/device’;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/activity.ts, line: 28

    ‘observable’ is declared but its value is never read.

     

    L27:      private lastpushed:number=0;

    L28:      private observable: Observable<any>; //Tracks request in progress

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/activity.ts, line: 32

    Property ‘platform’ is declared but its value is never read.

     

    L31:  private http:Http,

    L32:  private platform : Platform,

    L33:      private storage: Storage,

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/activity.ts, line: 2

    All imports on this line are unused.

     

    L1:  import { Injectable } from ‘@angular/core’;

    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    L3:  import { Platform } from ‘ionic-angular’;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/activity.ts, line: 8

    All imports on this line are unused.

     

    L7:  import ‘rxjs/add/observable/of’;

    L8:  import { DatePipe } from ‘@angular/common’;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/activity.ts, line: 11

    All imports on this line are unused.

     

    L10:  import { Activity } from “../models/activity”;

    L11:  import { ActivityMeta } from “../models/activity”;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/activity.ts, line: 16

    All imports on this line are unused.

     

    L16:  import { Storage } from ‘@ionic/storage’;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/users.ts, line: 2

    All imports on this line are unused.

     

    L1:  import { Injectable} from ‘@angular/core’;

    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    L3:  import ‘rxjs/add/operator/map’;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/users.ts, line: 6

    All imports on this line are unused.

     

    L5:  import ‘rxjs/add/observable/of’;

    L6:  import { CacheService } from “ionic-cache”;

    L7:  import { ToastController} from ‘ionic-angular’;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/users.ts, line: 18

    All imports on this line are unused.

     

    L18:  import { Storage } from ‘@ionic/storage’;

    L19:  import { ConfigService } from “./config”;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/blog.ts, line: 2

    All imports on this line are unused.

     

    L1:  import { Injectable } from ‘@angular/core’;

    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    L3:  import { Storage } from ‘@ionic/storage’;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/blog.ts, line: 3

    All imports on this line are unused.

     

    L2:  import { Http, Headers, Response, RequestOptions, URLSearchParams } from ‘@angular/http’;

    L3:  import { Storage } from ‘@ionic/storage’;

    L4:  import { ConfigService } from “./config”;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/pages/post/post.ts, line: 17

    Property ‘config’ is declared but its value is never read.

     

    L16:  private blog:BlogService,

    L17:  private config:ConfigService,

    L18:  private loadingController:LoadingController) {

     

    [16:09:04]  tslint: D:/ionic/wplms/src/pages/post/post.ts, line: 1

    ‘OnInit’ is declared but its value is never read.

     

    L1:  import { Component,OnInit } from ‘@angular/core’;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/pages/search/search.ts, line: 33

    Property ‘config’ is declared but its value is never read.

     

    L32:  private userService:UserService,

    L33:  private config:ConfigService

    L34:  ){

     

    [16:09:04]  tslint: D:/ionic/wplms/src/pages/search/search.ts, line: 9

    All imports on this line are unused.

     

    L9:  import { Course } from ‘../../models/course’;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/course.ts, line: 32

    ‘observable’ is declared but its value is never read.

     

    L32:      private observable: Observable<any>; //Tracks request in progress

    L33:      private allcoursesobservable: Observable<any>;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/course.ts, line: 62

    ‘extractData’ is declared but its value is never read.

     

    L62:      private extractData(response: Response) {

    L63:          let body = response.json();

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/course.ts, line: 74

    ‘handleError’ is declared but its value is never read.

     

    L74:  private handleError(error: Response) {

    L75:         console.log(error);

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/course.ts, line: 94

    ‘count’ is declared but its value is never read.

     

    L94:              let count:number=0;

    L95:              count = paged*this.config.settings.per_view – this.courses.length;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/course.ts, line: 165

    ‘res’ is declared but its value is never read.

     

    L164:  let body = response.json();

    L165:  let res=[];

    L166:  this.catobservable = null;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/course.ts, line: 201

    ‘res’ is declared but its value is never read.

     

    L200:  let body = response.json();

    L201:  let res=[];

    L202:  this.locobservable = null;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/course.ts, line: 239

    ‘res’ is declared but its value is never read.

     

    L238:  let body = response.json();

    L239:  let res=[];

    L240:  this.levobservable = null;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/course.ts, line: 296

    ‘k’ is declared but its value is never read.

     

    L295:  }else{

    L296:      let k = 0;

    L297:      if(this.fullCourses){

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/course.ts, line: 298

    ‘k’ is declared but its value is never read.

     

    L297:  if(this.fullCourses){

    L298:      let k = this.fullCourses.length;

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/course.ts, line: 555

    ‘getIndexByKeyValue’ is declared but its value is never read.

     

    L555:      private getIndexByKeyValue(arraytosearch, key, valuetosearch) {

     

    [16:09:04]  tslint: D:/ionic/wplms/src/services/course.ts, line: 565

    ‘copyobject’ is declared but its value is never read.

     

    L565:      private  copyobject(srcObj:any, destObj:any) {

    L566:          for (var key in destObj) {

    #13764

    Alex
    Keymaster

    Take backup of all ionic setup then

    rename the node_modules folder in your ionic project (where src folder is) to node_modules_BACKUP and also rename the package.json file to package_BACKUP.json .

    then download the package.json file from here : https://bit.ly/2I2F732

    Then place it in your ionic project .

    Then in terminal of cmd run :

    npm install

    Then run this command in your ionic project :

    ionic cordova platform rm android

    ionic cordova platform add [email protected]

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

Template Design © VibeThemes. All rights reserved.