Hai Angular People
would you like to help me
i always face (node:1924) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [Server]. Use emitter.setMaxListeners() to incr
ease limit
(Use node --trace-warnings ...
to show where the warning was created)
is have no idea, i just create 1 service to call some API
below this my service code
banner$ = this.http.get<Banner>(this.endPointMedia, {
headers: this.headers,
params: { category: 'slider' },
}).pipe(
take(1),
shareReplay(1),
tap((res) => console.log(res.r_data as BannerData[])),
map((res) => res.r_data as BannerData[]),
catchError((err) => {
throw err
})
);
is it possible coming from my service? so can anyone to give good pattern when create some service ?
thanks alot ….
avoid (node:1924) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [Server]. Use emitter.setMaxListeners() to incr ease limit (Use node –trace-warnings … to show where the warning was created)
jack owilson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.