How to increase EventEmitter in Nuxt3

I'm getting a warning in my console that there is a possible memory leak. However this is caused by a server middleware proxy and is intentional. Does anyone know how I can increase the setMaxListeners?
(node:8840) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [Server]. Use emitter.setMaxListeners() to increase limit
(node:8840) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [Server]. Use emitter.setMaxListeners() to increase limit
This inside the nuxt.config.ts config sadly did not do the trick.
import { EventEmitter } from 'events'
EventEmitter.setMaxListeners(25)
import { EventEmitter } from 'events'
EventEmitter.setMaxListeners(25)
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server