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
Non-imported standalone components combined with a directive are not reported during compilation #51064
Comments
I am facing the same issue since upgrading to standalone components. |
@jessicajaniuk we are having numerous defects due to this issue. Wondering any movement on this In our case we don;t even directives. e.g. MatButton could be imported but it is not imported and causes. Then the FlexLayout directives are never caught e.g. fxShow wondering what is the recourse other than not use standalone components ? |
In the meantime, the workaround for us is to rely on PhpStorm to highlight the markup in the template. This is clearly suboptimal since it is very easy to miss the visual indication, and not everyone is using PhpStorm. |
@jessicajaniuk is there anything we can do on our side to hep get this issue solved ? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Which @angular/* package(s) are the source of the bug?
compiler
Is this a regression?
No
Description
In a standalone component, if a component is used but not imported and it also have an imported directive, then the non-imported component will incorrectly:
This create bugs that are hard to detect, especially if the component has a small visual impact and/or you don't visually check every single page.
I expect that a non-imported component always raise errors during compilation, even if they also use directives.
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/stackblitz-starters-nkbwdm
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
This seems related to #46351, though I don't think that it really is the same issue.
The text was updated successfully, but these errors were encountered: