Open PowerSupply opened 4 months ago
Same problem for me. Some libs disappear from the project graph, so the dependency-check can't find them (and other tasks too). And Nx reset doesn't solve the problem. Curiously it only happen on libs where the folder path contains "api" ( 'projects/api/.../project.json), but it's probably a coincidence.
nx show projects
-> the lib returns in the project graphnx reset
-> the lib disappear againI've the problem on Ubuntu 20. It seems ok with @19.4.0.
Maybe resolved with https://github.com/nrwl/nx/pull/27338 ?
~I no longer have the problem with this version "nx": "19.6.2"
~.
The problem was elsewhere:
Current Behavior
Here is a description of the problem that pointed me to the conclusion in the title:
After upgrading to 19.5 from 19.0.4 the dependency-check lint rule started to fail with false negatives.
It said: error The "@nx/devkit" package is not used by "xxx" project
But it is used! And the lint worked before the upgrade to 19.5. Running the command with
--skip-nx-cache
still fails. But what is weird is that going to the file where @nx/devkit is imported and just making a small inconsequential change to it (like moving the line with the import to being second instead of first) makes the error go away. And then it doesn't appear again.Running
nx reset
and then trying the command again seems to fix it which points to some sort of local cache error. I think Nx should reset itself when migrating to a new version since it seems like the cache becomes dirty. But I do not understand why the error still appeared when i used--skip-nx-cache
.Expected Behavior
The problem I had should not have appeared. Proposed solution is to run nx reset as a part of migration to a new version of nx.
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response