You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compiler should error on unknown structural directives #37322
Issue an warning when compiling a template that do not match an structural directive selector.
Relevant Package
This feature request is for @angular/core
Description
The compiler completely ignore an selector like *myStructuralDirective without warning if it do not match any directive. This turns difficult to see that we are doing something wrong.
Describe the solution you'd like
If the selector in the template for an structural directive do not match any directive, show an warning about possible wrong usage.
Activity
22 remaining items
feat(compiler-cli): detect missing structural directive imports (angu…
JeanMeche commentedon Jan 15, 2025
Note: The new extended diagnostic will be shipped in 19.2 (scheduled for 2nd half of Febuary)Edit: We had to rollback the change in for v19.2, the feature actually landed in v20.
feat(compiler-cli): detect missing structural directive imports (angu…
angular-automatic-lock-bot commentedon Feb 15, 2025
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.
feat(compiler-cli): detect missing structural directive imports
feat(compiler-cli): detect missing structural directive imports (#59443)