I'm want to use Angular 2/Typescript with PouchDb and PouchDb-Find with a project generated with Angular-cli (which is now webpack based.) PouchDb gets wired in with a simple import statement.
import * as PouchDB from 'pouchdb'
var commonDb = new PouchDB(this.commonDbUrl) ;
console.log("commonDb",commonDb) ;
// .getIndexes() is from pouchDb.find. I don't know what the import for it is
commonDb.getIndexes().then(function (result) {
console.log("GetIndexes.Success",result) ;
}).catch(function (err) {
console.log("GetIndexes.Failed",err) ;
});
The new PouchDb works, the commonDb.getIndexes does not. I've tried many variations on import * as pouchfind from 'pouchdb-find' to no avail.
How do I import the PouchDb-Find module?
PouchDBworking, didn't you? Such asnpm install ...and others. What did you do? (And did you also do it for PouchDB-Find?) - acdcjuniorimport * as PouchDB from 'pouchdb'work? - acdcjuniorimport * as PouchDb frompouchdb` does work. I get the functionality of pouchdb. Added more info to question. - jeff