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
I have just started using NX for a react monorepo and noticed if I left the server running my Macbook would crash after a while.
I tried to track the problem and was able to reproduce it.
To reproduce the issue.
Create a new workspace npx create-nx-workspace@latest react-monorepo --preset=react-monorepo
Open activity monitor memory tab and filter node
cd into the newly created workspace and run yarn nx serve app-name
Observe the Activity monitor, memory usage should be stable around 450mb for a new workspace
Kill the server
In the directory from terminal run yarn --version // I get v1.22.18
then run yarn set version stable // now run yarn --version and you should be on 4.1.1
*then: yarn config set nodeLinker pnp yarn install
run yarn serve.. again and observe the memory output. Here mine begins to slowly increase until crash (complete mac crash)
Expected Behavior
Not to eat all my memory up until my laptop crashes
Current Behavior
I have just started using NX for a react monorepo and noticed if I left the server running my Macbook would crash after a while.
I tried to track the problem and was able to reproduce it.
To reproduce the issue.
npx create-nx-workspace@latest react-monorepo --preset=react-monorepo
yarn nx serve app-name
yarn --version
// I get v1.22.18
yarn set version stable
// now run yarn --version and you should be on 4.1.1
*then:
yarn config set nodeLinker pnp
yarn install
Expected Behavior
Not to eat all my memory up until my laptop crashes
GitHub Repo
No response
Steps to Reproduce
1.See above
Nx Report
Failure Logs
No response
Package Manager Version
Yarn 4.1.1
Operating System
Additional Information
I have some videos of my Activity Monitor I can post if needed.
The text was updated successfully, but these errors were encountered: