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
After upgrading to v19.7.4 v19.5.0, the @nx/dependency-checks rule believes that some of my packages have obsolete dependencies, while in fact the dependencies are referenced by existing code and are properly included with v18.3.1 v19.4.4.
So far, the problem appears to be that the files importing the dependencies are no longer included in the file-map.json and thus are not parsed for dependencies. The pattern I am observing is that file-map.json does not include the contents of src/lib for any of my packages, and this will miss any dependencies referenced by those files.
NX v19 v19.5.0 shows the following in fileMap.projectFileMap.validators:
My last comment was caused by confusion from a separate issue: #26675
When I control for this second bug, I once again see the fileMap problem appear with v19.5.0.
cainlevy
changed the title
fileMap is missing files after upgrade from v18.3.1 to v19.7.4
fileMap is missing files after upgrade from v19.4.4 to v19.5.0
Sep 20, 2024
Current Behavior
After upgrading to
v19.7.4v19.5.0, the@nx/dependency-checks
rule believes that some of my packages have obsolete dependencies, while in fact the dependencies are referenced by existing code and are properly included withv18.3.1v19.4.4.So far, the problem appears to be that the files importing the dependencies are no longer included in the file-map.json and thus are not parsed for dependencies. The pattern I am observing is that file-map.json does not include the contents of
src/lib
for any of my packages, and this will miss any dependencies referenced by those files.NX
v19v19.5.0 shows the following infileMap.projectFileMap.validators
:NX
v18v19.4.4 includes more:Expected Behavior
I expect the project-graph.json will reference all files in my packages and be aware of all dependencies used by those projects.
GitHub Repo
No response
Steps to Reproduce
test
package withpackages/test/src/lib/file.ts
packages/test/package.json
and import it fromfile.ts
@nx/dependency-checks
lintpackages/test/src/lib/file.ts
is missing from.nx/workspace-data/project-graph.json
and from.nx/workspace-data/file-map.json
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: