From d29e11e25b85efb4fed8b869365e24ad2338474b Mon Sep 17 00:00:00 2001 From: Thorarinn Sigurdsson Date: Thu, 28 Mar 2024 18:19:08 +0100 Subject: [PATCH] fix(core): increase max event listener count (#5889) Some users with very large projects occasionally run into a "maximum event listeners exceeded" warning. It's not quite clear why this would happen, but maybe this is to be expected for larger projects. Raising the limit should be harmless, and might help reveal underlying issues with the event listener lifecycle. --- core/src/events/events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/events/events.ts b/core/src/events/events.ts index cd5499bdbe..4c801f6643 100644 --- a/core/src/events/events.ts +++ b/core/src/events/events.ts @@ -45,7 +45,7 @@ export class EventBus extends EventEmitter2.EventEmitter2 { super({ wildcard: false, newListener: false, - maxListeners: 5000, // we may need to adjust this + maxListeners: 50000, // we may need to adjust this }) this.keyIndex = {} }