-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
Issue
I can't run a basic demo in node.js. this is my test.js:
const PouchDB = require('pouchdb');
(async () => {
console.info("init data...")
var dbtest = new PouchDB('dbtest')
try {
await dbtest.put({
_id: '1234324',
title: "zdsdasd"
})
console.info("line 11")
const docs = await dbtest.allDocs({ include_docs: true, descending: true })
console.info("docs.rows:" + JSON.stringify(docs.rows))
} catch (err) {
console.error(`PouchDB: ${err}`)
}
})()
result:
⋊> ~/w/ultron on master ⨯ node test.js 17:53:41
init data...
(node:89578) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 destroyed listeners added to [PouchDB]. Use emitter.setMaxListeners() to increase limit
(node:89578) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 closed listeners added to [PouchDB]. Use emitter.setMaxListeners() to increase limit
/Users/jin/work/ultron/node_modules/pouchdb/lib/index.js:198
throw new Error('once called more than once');
^
Error: once called more than once
at /Users/jin/work/ultron/node_modules/pouchdb/lib/index.js:198:13
at /Users/jin/work/ultron/node_modules/argsarray/index.js:14:18
at /Users/jin/work/ultron/node_modules/pouchdb/lib/index.js:2439:5
at /Users/jin/work/ultron/node_modules/pouchdb/lib/index.js:5043:16
at /Users/jin/work/ultron/node_modules/argsarray/index.js:14:18
at /Users/jin/work/ultron/node_modules/pouchdb/lib/index.js:5550:11
at processTicksAndRejections (internal/process/task_queues.js:82:9)
Info
- node version: 12.6.0
- pouchdb version: 7.1.1
- Platform: macos
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels