NG0912: Component ID generation collision detected #30648
Unanswered
robmanganelly
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I opened this issue as a question because I cannot blame nx for it, as I don't have the evidence, even though there are other similar issues here. See #19198
I can't find enough information about the real cause of it to make proper debugging.
Project setup:
NG0912: Component ID generation collision detected. Components 'BaseIcon' and 'BaseIcon' with selector 'ng-component' 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
NG0912
This only happens when I try to test ( nx foo:test ) an app or lib on my monorepo that contains components.
primeng usually requires some providers when working on the app, but in this case I have not provided anything, as my unit testing focuses on component class (methods and props)
Beta Was this translation helpful? Give feedback.
All reactions