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
19.1.X NG0912: Incorrect Component ID collision warning #29408
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
"NG0912: Component ID generation collision detected" is being thrown incorrectly despite all component selectors and IDs being unique.
Minimal Reproduction
Create a new Angular project using version 19.1.x
Run dev server
Continuously modify the app.component.html or the template of any other component.
Observe the terminal for the NG0912 warning. It appears sporadically during rebuilds triggered by these template modifications.
Exception or Error
NG0912: Component ID generation collision detected. Components '_AppComponent' and '_AppComponent' with selector 'app-root' generated the same component ID. To fix this, you can change the selector of one of those components or add an extra host attribute to force a different ID. Find more at https://angular.dev/errors/NG0912
Activity
alan-agius4 commentedon Jan 20, 2025
alan-agius4 commentedon Jan 20, 2025
fix(@angular/build): resolve incorrect component ID collision warning
alan-agius4 commentedon Jan 21, 2025
Closed via angular/angular#59625
angular-automatic-lock-bot commentedon Feb 21, 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.