You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey everyone,
since I updated to nx 20.x (coming form v 17.x) starting my backend apps (express.js) is very slow and it also takes a long time until code changes are noticed and reloaded during development. Especially when I run multiple microservices inside the monorepo it leads to very high memory usage - much more than before. Back in the days this was no problem at all.
Is this a known issue?
I also receive several deprecation warnings since the update, just like this one:
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
which comes from an outdated version of glob as far as I could debug it. Could it be related to the issue? My system seems to have problems when I run multiple instances of my backend apps in my monorepo (what was no problem before) and sometimes even leads to a complete freeze.
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS
Release: 24.04
Codename: noble
node -v
v22.13.1
npm -v
10.9.2
"nx": "20.4.0",
This is only a problem with my backend apps. My frontend react apps (via vite) do not struggle at all.
Expected Behavior
I'd expect the monorepo (especially the backend node apps) to run with a much higher performance (especially when it comes to a hot reload after a lib was changed which is used by multiple backend apps).
GitHub Repo
No response
Steps to Reproduce
create a lib with some code
create 3-4 express.js apps in the monorepo using that lib
make changes inside the lib
have a look at the memory usage and performance while hot reloading
Current Behavior
Hey everyone,
since I updated to nx 20.x (coming form v 17.x) starting my backend apps (express.js) is very slow and it also takes a long time until code changes are noticed and reloaded during development. Especially when I run multiple microservices inside the monorepo it leads to very high memory usage - much more than before. Back in the days this was no problem at all.
Is this a known issue?
I also receive several deprecation warnings since the update, just like this one:
which comes from an outdated version of glob as far as I could debug it. Could it be related to the issue? My system seems to have problems when I run multiple instances of my backend apps in my monorepo (what was no problem before) and sometimes even leads to a complete freeze.
This is only a problem with my backend apps. My frontend react apps (via vite) do not struggle at all.
Expected Behavior
I'd expect the monorepo (especially the backend node apps) to run with a much higher performance (especially when it comes to a hot reload after a lib was changed which is used by multiple backend apps).
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
With nx v17.x this was no problem at all.
The text was updated successfully, but these errors were encountered: