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

Tslint:warning All imports are unused

$
0
0

@guangming wrote:

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

But I use that import:

constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen, storage: Storage
, private apiService: ApiService, private app: App, private toastCtrl: ToastController, private appUpdate: AppUpdate) {
......
new LoginUtil(storage, data.data).stoageUserInfo();
......
}

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

my package.json{
......
"ionic-angular": "^3.5.3",
......
"@ionic/app-scripts": "^2.0.2",
"typescript": "^2.4.0"
}

Posts: 3

Participants: 2

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>