How do I get rid off EventEmitter memory leak error?

I have tried this(Eventemitter leak and plotly_afterplot) link but it is not working.
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 plotly_relayout listeners added. Use emitter.setMaxListeners() to increase limit

Hi @rakesh.margale Welcome!

What exactly are you trying to do? The topic you linked to is quite old so maybe there are other ways to achieve what you want to do.

I am trying to build a boxplot visualization using plotly js library and I have successfully built that already but sometimes the boxplots are not getting plotted and giving below error:
" MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 plotly_afterplot listeners added. Use emitter.setMaxListeners() to increase limit
** at f (http://localhost:8006/CustomView/DUs0GUoPbE6DPodm1--IH/NoDocumentViewId/ee442cfc-98b5-42e4-8e0b-f3cc2e7040c1/:9735:19558)**
** at s.addListener (http://localhost:8006/CustomView/DUs0GUoPbE6DPodm1--IH/NoDocumentViewId/ee442cfc-98b5-42e4-8e0b-f3cc2e7040c1/:9735:21840)**
** at r.manageCommandObserver (http://localhost:8006/CustomView/DUs0GUoPbE6DPodm1--IH/NoDocumentViewId/ee442cfc-98b5-42e4-8e0b-f3cc2e7040c1/:9759:941699)**
** at SVGGElement. (http://localhost:8006/CustomView/DUs0GUoPbE6DPodm1--IH/NoDocumentViewId/ee442cfc-98b5-42e4-8e0b-f3cc2e7040c1/:9759:629872)**"