Module '"C:/Users/anees/network/node_modules/@ionic-native/core/index"' has no exported member 'IonicNativePlugin'.

// home.ts
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { Network } from '@ionic-native/network';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
constructor(public navCtrl: NavController, private network: Network) {
// watch network for a disconnect
let disconnectSubscription = this.network.onDisconnect().subscribe(() => {
console.log('network was disconnected :-(');
});
}
}
also add to the providers array in app.module.ts
also add to the providers array in app.module.ts