Replies: 2 comments 6 replies
-
I suspect it is an issue in http-proxy package |
Beta Was this translation helpful? Give feedback.
-
Okay, I did some additional research, and here is some detailed info:
The
In the end, 11 proxies will be created, but all of them will be subscribed to a single So, basically, the issue is not directly related to only @chimurai I guess you are the only one who can help me at that stage of the investigation. Can you tell is it possible to fix the issue only at |
Beta Was this translation helpful? Give feedback.
-
Hello there!
I had a problem with my project and I'm not quite sure if it's a bug or if I am doing something wrong. Asking the community for help.
So, basically, my setup is:
On starting the project via
npm run
it compiles successfully and deploys locally.Once I open the webpage with the application the terminal throws the following error:
I was able to track down the problem and here is the case:
angular.json
has the fieldprojects.ui-cli.architect.serve.options.proxyConfig
.node_modules/http-proxy-middleware/dist/http-proxy-middleware.js
there are the lines of code that called for every proxy path definition:So, as I got it for every definition of a proxy path the
close
listener on theserver
was created to close the proxy. But all the proxies subscribed to a single event emitter and this part the node treats as a memory leak.Can you guys help identify is that the problem with the
http-proxy-middleware
or if it is my project's setup that causes the error?Any information will be much appreciated, thanks!
Beta Was this translation helpful? Give feedback.
All reactions