-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
angular/build:dev-serverarea: @angular/buildfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity2: inconvenienttype: bug/fix
Description
Command
serve
Is this a regression?
- 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
Your Environment
Enabled SSR
Angular CLI: 19.1.2
Node: 20.18.1
Package Manager: pnpm 10.0.0
OS: win32 x64
Angular: 19.1.1
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1901.2
@angular-devkit/build-angular 19.1.2
@angular-devkit/core 19.1.2
@angular-devkit/schematics 19.1.2
@angular/cli 19.1.2
@angular/ssr 19.1.2
@schematics/angular 19.1.2
rxjs 7.8.1
typescript 5.7.3
zone.js 0.15.0
Anything else relevant?
No response
Metadata
Metadata
Assignees
Labels
angular/build:dev-serverarea: @angular/buildfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity2: inconvenienttype: bug/fix