Skip to content

Comments

Fix not finding workspace project from deep imports on enforce module boundaries#34536

Open
Ryntak94 wants to merge 4 commits intonrwl:masterfrom
Ryntak94:fix-not-finding-workspace-project-from-deep-imports-on-enforce-module-boundaries
Open

Fix not finding workspace project from deep imports on enforce module boundaries#34536
Ryntak94 wants to merge 4 commits intonrwl:masterfrom
Ryntak94:fix-not-finding-workspace-project-from-deep-imports-on-enforce-module-boundaries

Conversation

@Ryntak94
Copy link

Current Behavior

@nx/enforce-module-boundaries was not identifying the importing of an app if it was installed as a dependency in the package.json and was not listed in the paths of the tsconfig.

Also targetProjectLocator.findImportInWorkspaceProjects wasn't finding projects in the workspace if they weren't namespaced and were using subpaths.

Expected Behavior

targetProjectLocator.findImportInWorkspaceProjects should find projects even if they aren't namespaced and are using subpaths.
@nx/enforce-module-boundaries should error on importing apps even if they are not namespaced, installed as project dependencies, and don't exist in the paths of the relevant tsconfig.

Related Issue(s)

none (as far as I can tell)

Fixes #

@netlify
Copy link

netlify bot commented Feb 20, 2026

👷 Deploy request for nx-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 84f18a6

@netlify
Copy link

netlify bot commented Feb 20, 2026

👷 Deploy request for nx-dev pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 84f18a6

@Ryntak94 Ryntak94 marked this pull request as ready for review February 20, 2026 22:55
@Ryntak94 Ryntak94 requested review from a team as code owners February 20, 2026 22:55
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant