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
However, the @nx/enforce-module-boundaries lint rule is complaining about a library from ./libs/prefix/foo importing another sibling library ./libs/prefix/bar.
import{bar}from'@libs/prefix-bar';
error A project tagged with "type:lib" can only depend on libs tagged with "type:lib"
Current Behavior
The following
paths
config for TS seems to be valid for TypeScript itself.However, the
@nx/enforce-module-boundaries
lint rule is complaining about a library from./libs/prefix/foo
importing another sibling library./libs/prefix/bar
.During investigating this bug, I tracked the source of the issue all the way down to these lines: https://github.com/nrwl/nx/blob/master/packages/nx/src/plugins/js/project-graph/build-dependencies/target-project-locator.ts#L249-L254
Expected Behavior
The lint rule should understand the complex
paths
config and not throw errors.GitHub Repo
No response
Steps to Reproduce
@libs/prefix-foo
&@libs/prefix-bar
paths
totsconfig.json
:nx run-many -t lint
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: