nx: Unable to remove dependencies between projects as specified in the docs via `implicitDependencies`
Current Behavior
In https://nx.dev/l/r/core-concepts/configuration, it specified that we can remove dependencies between projects (e.g. a lib seems to build an app while it does not have a connection via the project graph, so I’d like to explicitly remove it)
Finally, you can remove dependencies between projects. The following say even though the project imports 'mylib', it's not a dependency Nx should be concerned with.
{
//... other project config
"tags": [],
"implicitDependencies": ["!mylib"]
}
When adding "implicitDependencies": ["!mylib"] project.json file of a lib, then trying to build it, I get:
> NX ERROR Configuration Error
The following implicitDependencies specified in project configurations are invalid:
lib
!mylib
From what I can see, support for this functionality isn’t anywhere in the relevant areas of nx.
Expected Behavior
Should build the library without building mylib.
Steps to Reproduce
Failure Logs
Environment
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 11
- Comments: 17 (3 by maintainers)
Is there any news on this?
I’m not able to reproduce this on the latest Nx. Is anybody able to reproduce this on Nx
15.2.1+?@vsavkin Please take a look.