Hello all,
Just upgraded to RC2 and install all the necessary packages. I went to build and serve my project and am getting back this console error:
ReferenceError: pouchdbFind is not defined
I installed pouchdb, pouchdb-find and the cordova plugin for pouchdb. Still this error persists.
This is how i define it in my service:
import * as PouchDB from ‘pouchdb’;
declare var pouchdbFind: any;
declare var PouchAdapterCordovaSqlite: any;
export class StorageService(){
PouchDB.plugin(pouchdbFind);
PouchDB.plugin(PouchAdapterCordovaSqlite);
…Do stuff
}
Even if I import import * as pouchdbFind from 'pouchdb-find';
explicitly, I get a typings error. The node-module is installed, but the problem still persists. Im afraid I will have to downgrade to RC1 until I can fix this issue.
Thanks!