nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.35k stars 2.33k forks source link

Nx does not recomputes project graph afer changes in node_modules #27943

Open Exelord opened 2 weeks ago

Exelord commented 2 weeks ago

Current Behavior

When switching to a branch with yarn.lock changes, NX does not recomputes the graph automatically. After running yarn install I need to manually nx reset in order to get a correct graph and use remote cache.

Expected Behavior

When switching to a branch with yarn.lock changes, NX does recomputes the graph automatically and it is watching for any change in node_modules.

GitHub Repo

No response

Steps to Reproduce

  1. Switch to a different branch with changes in dependencies
  2. Try to get targets from remote cache [no cache]
  3. install dependencies and try again [ no cache ]
  4. run nx reset
  5. Try again running from cache [ remote cache found ]

Nx Report

NX 19.7.2

Failure Logs

No response

Package Manager Version

No response

Operating System

Additional Information

No response

jaysoo commented 5 days ago

Do you have a repro that you can link to for us to debug?