nx: Nx 15.9.2 cannot resolve dependency between libraries
Current Behavior
We want to migrate from 15.7.1 to 15.9.2, but for some reason, the new version of Nx cannot find a dependency between two connected libraries.

When I try to add something to a file inside the library, Nx resolves the dependency between them:

If I remove this line of code and make a clear cache, after I will try to execute the dep-graph dependency, the dependency hides.
Also because of this error, I cannot build libraries:
File ‘library/path’ is not under ‘rootDir’
I used:
yarn nx migrate latest yarn nx migrate --run-migrations
The whole migration was without problems.
Expected Behavior
Nx resolves dependencies correctly and build whole workspace without problems
GitHub Repo
No response
Steps to Reproduce
- Migrate workspace with 400 libraries from 15.7.1 to 15.9.2
Nx Report
Node : 16.16.0
OS : darwin arm64
yarn : 1.22.4
nx : 15.9.2
@nrwl/js : 15.9.2
@nrwl/jest : 15.9.2
@nrwl/linter : 15.9.2
@nrwl/workspace : 15.9.2
@nrwl/angular : 15.9.2
@nrwl/cli : 15.9.2
@nrwl/cypress : 15.9.2
@nrwl/devkit : 15.9.2
@nrwl/eslint-plugin-nx : 15.9.2
@nrwl/nest : 15.9.2
@nrwl/node : 15.9.2
@nrwl/storybook : 15.9.2
@nrwl/tao : 15.9.2
@nrwl/web : 15.9.2
@nrwl/webpack : 15.9.2
@nrwl/nx-cloud : 16.0.2
typescript : 4.9.5
---------------------------------------
Community plugins:
@ngneat/transloco : 4.2.6
@ngrx/effects : 15.3.0
@ngrx/entity : 15.3.0
@ngrx/store : 15.3.0
@ngrx/store-devtools : 15.3.0
@rx-angular/cdk : 1.0.0
@rx-angular/state : 1.7.0
@rx-angular/template : 1.0.0
@storybook/angular : 6.5.15
@testing-library/angular : 13.1.0
Failure Logs
No response
Additional Information
I cannot provide you with repro steps, because our repository is private. If you’ll need more information I can provide you. It looks like a problem with the newest version, because before we had good stable build
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 12
- Comments: 16 (2 by maintainers)
Tried to create a new library with the same files and got the same problem: