RC0: Using Plugin for PouchDB?


#1

Is there anybody how knows, how to use a plugin for PouchDB in Ionic 2 RC0?

I tried the following code for Crypto-Pouch:

import PouchDB from 'pouchdb';
import CryptoPouch from 'crypto-pouch';

PouchDB.plugin(CryptoPouch);

Using ionic serve shows no error, but in the console there’s the message:

_stream_readable.js:38 Uncaught TypeError: Cannot read property 'listenerCount' of undefined       (anonymous function) 
     @ _stream_readable.js:38(anonymous function) 
     @ main.dev.ts:5