Skip to content

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)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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