Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Ionic 3.5.3 a lot warning about unused imports

$
0
0

@esase wrote:

Hello, recently I have updated my ionic project, but now I see a lot of warnings like this:

[17:03:08] tslint: src/shared/components/avatar/index.ts, line: 1
'ChangeDetectorRef' is declared but never used.

   L1:  import { Component, Input, ChangeDetectionStrategy, ChangeDetectorRef, OnInit, OnDestroy } from '@angular/co
   L2:  import { DataStore } from 'js-data';

But I use that import:

/**
* Constructor
*/
constructor(
private events: Events,
private api: DataStore,
private ref: ChangeDetectorRef)
{

The questions is why ionic thinks that it not used import?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>