WordPress LMS for Web and mobile Forums Ionic App Support Duplicate variable: 'correct' & 'cats' & 'off'

Duplicate variable: 'correct' & 'cats' & 'off'

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36354

    Dante
    Participant

    How I can correct duplicate variables in:

     

    [app-scripts] [17:56:08]  tslint: F:/My PP/Interlan/src/components/question/question.ts, line: 288

    [app-scripts]             Duplicate variable: ‘correct’

    [app-scripts]      L287:  if(this.question.marked){

    [app-scripts] [17:56:08]  tslint: F:/My PP/Interlan/src/components/question/question.ts, line: 303

    [app-scripts] [17:56:08]  tslint: F:/My PP/Interlan/src/components/question/question.ts, line: 346

    [app-scripts] [17:56:08]  tslint: F:/My PP/Interlan/src/components/question/question.ts, line: 359

    [app-scripts] [17:56:08]  tslint: F:/My PP/Interlan/src/pages/directory/directory.ts, line: 288

    [app-scripts] [17:56:08]  tslint: F:/My PP/Interlan/src/pages/directory/directory.ts, line: 302

    [app-scripts] [17:56:08]  tslint: F:/My PP/Interlan/src/pages/directory/directory.ts, line: 317

    [app-scripts] [17:56:08]  tslint: F:/My PP/Interlan/src/pages/directory/directory.ts, line: 322

    [app-scripts]      L288:      var correct = this.question.marked.split(‘,’);;

    [app-scripts]      L289:      if(correct.length){

    [app-scripts]             Duplicate variable: ‘correct’

    [app-scripts]      L302:  if(this.question.marked){

    [app-scripts]      L303:      var correct = this.question.marked.split(‘,’);;

    [app-scripts]      L304:      if(correct.length){

    [app-scripts]             Duplicate variable: ‘correct’

    [app-scripts]      L346:   var correct = this.question.correct.split(‘|’);

    [app-scripts]      L347:   if(correct.length){

    [app-scripts]             Duplicate variable: ‘correct’

    [app-scripts]      L358:  answer = ”;

    [app-scripts]      L359:  var correct = this.question.correct.split(‘|’);

    [app-scripts]      L360:  if(correct.length){

    [app-scripts]             Duplicate variable: ‘cats’

    [app-scripts]      L287:  console.log(this.selectedLocations);

    [app-scripts]      L288:  var cats = {‘type’:’taxonomy’,’taxonomy’:’location’,’values’:this.selectedLocations};

    [app-scripts]      L289:  this.filters.push(cats);

    [app-scripts]             Duplicate variable: ‘cats’

    [app-scripts]      L302:              var cats = {‘type’:’taxonomy’,’taxonomy’:’level’,’values’:this.selectedLevels};

    [app-scripts]      L303:              this.filters.push(cats);

    [app-scripts]             Duplicate variable: ‘off’

    [app-scripts]      L316:  if(this.start_date){

    [app-scripts]      L317:      var off = {‘type’:’start_date’,’values’:this.start_date};

    [app-scripts]      L318:      this.filters.push(off);

    [app-scripts]             Duplicate variable: ‘off’

    [app-scripts]      L321:  if(this.end_date){

    [app-scripts]      L322:      var off = {‘type’:’end_date’,’values’:this.end_date};

     

     

    #36436

    Scott Lang
    Keymaster
    This reply has been marked as private.
    #36437

    Scott Lang
    Keymaster

    Hi,

    Please share your ionic info details from the command prompt in the root of your project. Like this: http://prntscr.com/pkf145

    Also is that you are getting any error on ionic-serve running process??

    #36473

    Dante
    Participant

    hi Scott Lang

     

    Ionic:

     

    Ionic CLI          : 5.4.2 (C:\Users\ASRGURU\AppData\Roaming\npm\node_modules\ionic)

    Ionic Framework    : ionic-angular 3.9.2

    @ionic/app-scripts : 3.1.10

     

    Cordova:

     

    Cordova CLI       : 9.0.0 ([email protected])

    Cordova Platforms : android 8.1.0, ios 4.5.5

    Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 1.2.1, (and 13 other plugins)

     

    Utility:

     

    cordova-res : 0.6.0

    native-run  : 0.2.8

     

    System:

     

    (H:\android-sdk)ols : 25.2.5

    NodeJS            : v10.16.0 (C:\Program Files\nodejs\node.exe)

    npm               : 6.11.3

    OS                : Windows 10

     

     

    yes this is what i getting after running IONIC-SERVE

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.