Skip to content

Problem with PouchDB - Next.js #7848

@youssef3wi

Description

@youssef3wi

Issue

Hi,
I'm running into problems with pouch.

(node:7690) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 destroyed listeners added to [PouchDB]. Use emitter.setMaxListeners() to increase limit

even when i increase listeners

db.setMaxListeners(20);

give me

21 destroyed listeners added to [PouchDB]

I've been searching around for a few hours, and can't find anything relevant. I think this might have something to do with PouchDB in next.js.config or can i have some suggestion or example of PouchDB using next.js

Info

  • Environment: (Node.js/browser/Next.js)
  • Platform: (Safari)
  • Adapter: (LevelDB)
  • Server: (PouchDB Server)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions