Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cdk/overlay): ensure re-exported transitive Dir directive can be imported #30679

Merged
merged 1 commit into from
Mar 21, 2025

Conversation

devversion
Copy link
Member

This is a follow-up to cb3b0a8 which did miss this transitive re-export of the Dir directive. The compiler will try the last module import, so even if e.g. ./scrolling re-exported Dir as of the initial commit, the compiler would try importing via @angular/cdk/overlay.

This commit fixes this remaining instance, and updates the new testing infrastructure to import/test every module in isolation. The tests didn't notice that issue because the compiler discovered the Dir directive/"Reference" already via another import that "worked".

Fixes #30663.

@devversion devversion requested a review from crisbeto March 21, 2025 07:28
@devversion devversion added target: patch This PR is targeted for the next patch release action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 21, 2025
@devversion devversion marked this pull request as ready for review March 21, 2025 07:28
@devversion devversion requested a review from a team as a code owner March 21, 2025 07:28
@devversion devversion requested review from mmalerba and removed request for a team March 21, 2025 07:28
…e imported

This is a follow-up to cb3b0a8 which
did miss this transitive re-export of the `Dir` directive. The compiler
will try the last module import, so even if e.g. `./scrolling`
re-exported `Dir` as of the initial commit, the compiler would try
importing via `@angular/cdk/overlay`.

This commit fixes this remaining instance, and updates the new testing
infrastructure to import/test every module in isolation. The tests
didn't notice that issue because the compiler discovered the `Dir`
directive/"Reference" already via another import that "worked".

Fixes angular#30663.
@devversion devversion added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 21, 2025
@devversion devversion removed the request for review from mmalerba March 21, 2025 09:17
@devversion devversion merged commit 1e5082d into angular:main Mar 21, 2025
19 of 22 checks passed
@devversion
Copy link
Member Author

The changes were merged into the following branches: main, 19.2.x

devversion added a commit that referenced this pull request Mar 21, 2025
…e imported (#30679)

This is a follow-up to cb3b0a8 which
did miss this transitive re-export of the `Dir` directive. The compiler
will try the last module import, so even if e.g. `./scrolling`
re-exported `Dir` as of the initial commit, the compiler would try
importing via `@angular/cdk/overlay`.

This commit fixes this remaining instance, and updates the new testing
infrastructure to import/test every module in isolation. The tests
didn't notice that issue because the compiler discovered the `Dir`
directive/"Reference" already via another import that "worked".

Fixes #30663.

(cherry picked from commit 1e5082d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: cdk/overlay target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(cdk): [ERROR] TS-993004: Unable to import directive in 19.2.4
2 participants