typeof XService is not assignable to type 'FactoryProvider'. Property 'provide' is missing
It happens because of ionic latest update for ionic 4.
You have to import it like this (adding '/ngx' )
import { PluginName} from '@ionic-native/pluginName/ngx';
Or, you can downgrade the plugin's version
It was happening to me with another plugin.
More info here
The solution is to remove the private modifier from the constructor. You simply cannot have an injectable service with a private constuctor.
public constructor() {
this._db = new PouchDB('rates.db', { adapter: 'websql' });
}
or:
constructor() {
this._db = new PouchDB('rates.db', { adapter: 'websql' });
}