#EventEmitter memory leak

2 messages · Page 1 of 1 (latest)

tight barn
#

(node:34836) MaxListenersExceededWarning: (node) warning: possible EventEmitter memory leak detected. 2 listeners added. Use emitter.setMaxListeners() to increase limit. Event name: campaigns.dispatchEmailCampaigns.

Thing is, I'm only setting each once on an @Event

Could it be some issue with module importing?
In the docs it says that modules are singleton by default...

tight barn
#

@Global() fixed it, not sure what happened though
My use case is that I had a controller, module and service and imported another service that import the service which had the OnEvent's
Making it Global fixed the duplicate register of handlers