Skip to content

Compiler should error on unknown structural directives #37322

Closed

Description

@nexsandro

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.

Describe alternatives you've considered

I don't see alternatives.

Activity

  1. added this to the needsTriage milestone on May 28, 2020
  2. added
    featureLabel used to distinguish feature request from other issues
    and removed on Jul 4, 2020
  3. modified the milestones: needsTriage, Backlog on Jul 4, 2020
  4. 22 remaining items

  5. added a commit that references this issue on Jan 15, 2025
    ed705a8
  6. JeanMeche commented on Jan 15, 2025

    @JeanMeche
    Member

    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.

  7. added a commit that references this issue on Feb 7, 2025
    038af53
  8. angular-automatic-lock-bot commented on Feb 15, 2025

    @angular-automatic-lock-bot

    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.

  9. locked and limited conversation to collaborators on Feb 15, 2025
  10. added a commit that references this issue on Mar 26, 2025
    7e61db3
  11. added a commit that references this issue on Apr 29, 2025
    c889382
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions