Skip to content

Conversation

@Achilles1515
Copy link

…ut circular dependencies warning

Import the CdkDrag directive reference as a type-only import to avoid the circular dependency warning.

…ut circular dependencies warning

Import the `CdkDrag` directive reference as a type-only import to avoid the circular dependency warning.
@Achilles1515
Copy link
Author

@andrewseguin
I struggled enormously rebasing that branch that I guess I had deleted...idk. I ended up just making this new pull request.

Old issue with conversation:
#20757

SkipSelf,
} from '@angular/core';
import {Subject} from 'rxjs';
import type {CdkDrag} from './drag';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remember correctly, we aren't allowed to use type imports because the internal JS tooling can't handle them.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've confirmed that we can't use type-only imports and exports, because Closure doesn't know how to handle them. I've also submitted #24678 to lint against it automatically.

@andrewseguin
Copy link
Contributor

@Achilles1515 It's been a few weeks since a response after the review - do you still want to land this?

@andrewseguin andrewseguin added the needs: clarification The issue does not contain enough information for the team to determine if it is a real bug label Apr 14, 2022
@Achilles1515
Copy link
Author

@andrewseguin According to the review comments from @crisbeto we can't.
So either some larger discussion happens about allowing type imports or I guess this issue just gets closed.

@andrewseguin
Copy link
Contributor

Bummer - sorry about that. Thanks for attempting to make the improvement

@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 May 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

needs: clarification The issue does not contain enough information for the team to determine if it is a real bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants