René's URL Explorer Experiment


Title: NG0912 error after migrating (to 16) multiple components with no selector · Issue #50158 · angular/angular · GitHub

Open Graph Title: NG0912 error after migrating (to 16) multiple components with no selector · Issue #50158 · angular/angular

X Title: NG0912 error after migrating (to 16) multiple components with no selector · Issue #50158 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description Components generated with the CLI (pre 16.x or 16.x) using --skip-selector result in the browser displaying NG0912 error, claiming that mul...

Open Graph Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description Components generated with the CLI (pre 16.x or 16.x) using --skip-selector result in the browser di...

X Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description Components generated with the CLI (pre 16.x or 16.x) using --skip-selector result in the browser di...

Opengraph URL: https://github.com/angular/angular/issues/50158

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NG0912 error after migrating (to 16) multiple components with no selector","articleBody":"### Which @angular/* package(s) are the source of the bug?\r\n\r\ncore\r\n\r\n### Is this a regression?\r\n\r\nYes\r\n\r\n### Description\r\n\r\nComponents generated with the CLI (pre 16.x or 16.x) using `--skip-selector` result in the browser displaying NG0912 error, claiming that multiple of my components have colliding selector `ng-component`, when using Angular 16. This error is **not** present in at least 13, 14, and 15.\r\n\r\nThe components in question all look like this:\r\n```typescript\r\nimport { Component } from '@angular/core';\r\n@Component({\r\n  templateUrl: './foo-with-no-selector.component.html',\r\n  styleUrls: ['./foo-with-no-selector.component.scss'],\r\n})\r\nexport class FooWithNoSelector{ ... some stuff }\r\n@Component({\r\n  templateUrl: './bar-with-no-selector.component.html',\r\n  styleUrls: ['./bar-with-no-selector.component.scss'],\r\n})\r\nexport class BarWithNoSelector{ ... some stuff }\r\n```\r\nThese components are used only in Routing (or manually created as dialogs using material).\r\nAfaik the convention for route only components was to omit `selector`. Is this change intentional or is it documented somewhere?\r\n\r\n### Please provide a link to a minimal reproduction of the bug\r\n\r\n_No response_\r\n\r\n### Please provide the exception or error you saw\r\n\r\n```true\r\nNG0912: Component ID generation collision detected. Components 'FooWithNoSelector' and 'BarWithNoSelector' 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.io/errors/NG0912\r\n```\r\n\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\n```true\r\nAngular CLI: 16.0.0\r\nNode: 18.16.0\r\nPackage Manager: npm 9.6.4\r\nOS: win32 x64\r\n\r\nAngular: 16.0.0\r\n... animations, cdk, cli, common, compiler, compiler-cli, core\r\n... forms, material, material-luxon-adapter, platform-browser\r\n... platform-browser-dynamic, router\r\n\r\nPackage                         Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect       0.1600.0\r\n@angular-devkit/build-angular   16.0.0\r\n@angular-devkit/core            16.0.0\r\n@angular-devkit/schematics      16.0.0\r\n@schematics/angular             16.0.0\r\nrxjs                            7.8.1\r\ntypescript                      4.9.5\r\n```\r\n\r\n\r\n### Anything else?\r\n\r\n_No response_","author":{"url":"https://github.com/alexaka1","@type":"Person","name":"alexaka1"},"datePublished":"2023-05-05T10:28:40Z","url":"https://github.com/angular/angular/issues/50158"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2d4fac1c-c533-1fbd-15c9-80007e6db5c1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA5C8:240CD1:1803EEC:1E879C6:6B013FD8
html-safe-noncee03de27f7cec64ceca05bea488a11394c5d066d789de1111a5a6ad76ab981200
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUM4OjI0MENEMToxODAzRUVDOjFFODc5QzY6NkIwMTNGRDgiLCJ2aXNpdG9yX2lkIjoiOTE0NDgxNTc5NDAyMTAyMzcwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2927b762d97d99a9b3013bd071f16654074e4963f22cc9c010740ca88998160c
hovercard-subject-tagissue:1697381885
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/50158/issue_layout
twitter:imagehttps://opengraph.githubassets.com/26fa5f9e58dccaf863156042b8931fcc151a013d893d17a7d5fd906a7eee98e5/angular/angular/issues/50158
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/26fa5f9e58dccaf863156042b8931fcc151a013d893d17a7d5fd906a7eee98e5/angular/angular/issues/50158
og:image:altWhich @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description Components generated with the CLI (pre 16.x or 16.x) using --skip-selector result in the browser di...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealexaka1
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/50158#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F50158
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F50158
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/50158
Reloadhttps://github.com/angular/angular/issues/50158
Reloadhttps://github.com/angular/angular/issues/50158
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues836 (836)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/50158
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/50158
NG0912 error after migrating (to 16) multiple components with no selectorhttps://github.com/angular/angular/issues/50158#top
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/alexaka1
alexaka1https://github.com/alexaka1
on May 5, 2023https://github.com/angular/angular/issues/50158#issue-1697381885
Nexthttps://github.com/angular/angular/issues/50158?timeline_page=1
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on May 5, 2023https://github.com/angular/angular/issues/50158#issuecomment-1536082704
https://angular.io/errors/NG0912https://angular.io/errors/NG0912
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on May 5, 2023https://github.com/angular/angular/issues/50158#issuecomment-1536082772
#48253https://github.com/angular/angular/pull/48253
#49986https://github.com/angular/angular/pull/49986
alan-agius4https://github.com/alan-agius4
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
on May 5, 2023https://github.com/angular/angular/issues/50158#event-9175756209
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on May 5, 2023https://github.com/angular/angular/issues/50158#event-9175756651
https://github.com/alexaka1
alexaka1https://github.com/alexaka1
on May 5, 2023https://github.com/angular/angular/issues/50158#issuecomment-1536108936
@alan-agius4https://github.com/alan-agius4
@JeanMechehttps://github.com/JeanMeche
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on May 5, 2023https://github.com/angular/angular/issues/50158#issuecomment-1536126030
https://github.com/alexaka1
alexaka1https://github.com/alexaka1
on May 5, 2023https://github.com/angular/angular/issues/50158#issuecomment-1536262499
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on May 5, 2023https://github.com/angular/angular/issues/50158#issuecomment-1536317642
@alexaka1https://github.com/alexaka1
https://github.com/alexaka1
alexaka1https://github.com/alexaka1
on May 5, 2023https://github.com/angular/angular/issues/50158#issuecomment-1536330569
@JeanMechehttps://github.com/JeanMeche
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on May 5, 2023https://github.com/angular/angular/issues/50158#issuecomment-1536653212
@alan-agius4https://github.com/alan-agius4
@alexaka1https://github.com/alexaka1
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on May 5, 2023https://github.com/angular/angular/issues/50158#issuecomment-1536687196
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on May 5, 2023https://github.com/angular/angular/issues/50158#issuecomment-1536692500
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on May 5, 2023https://github.com/angular/angular/issues/50158#issuecomment-1536713172
@JoostKhttps://github.com/JoostK
@JeanMechehttps://github.com/JeanMeche
https://github.com/BirchyBirch
BirchyBirchhttps://github.com/BirchyBirch
on May 6, 2023https://github.com/angular/angular/issues/50158#issuecomment-1536934833
@JeanMechehttps://github.com/JeanMeche
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on May 6, 2023https://github.com/angular/angular/issues/50158#issuecomment-1537061939
https://github.com/charlesritchea
charlesritcheahttps://github.com/charlesritchea
on Aug 12, 2024https://github.com/angular/angular/issues/50158#issuecomment-2283669313
…https://github.com/angular/angular/issues/50158
@pduranahttps://github.com/pdurana
https://github.com/pduranahttps://github.com/pdurana
@charlesritcheahttps://github.com/charlesritchea
https://github.com/charlesritcheahttps://github.com/charlesritchea
#50158 (comment)https://github.com/angular/angular/issues/50158#issuecomment-2283235734
https://github.com/notifications/unsubscribe-auth/AAMUMHJEB6TP3U4V5OB54V3ZRBMQVAVCNFSM6AAAAAAXW5YK62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBTGIZTKNZTGQhttps://github.com/notifications/unsubscribe-auth/AAMUMHJEB6TP3U4V5OB54V3ZRBMQVAVCNFSM6AAAAAAXW5YK62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBTGIZTKNZTGQ
https://github.com/tonybrasunas-greenlots
tonybrasunas-greenlotshttps://github.com/tonybrasunas-greenlots
on Sep 4, 2024https://github.com/angular/angular/issues/50158#issuecomment-2329414287
https://github.com/arjuntechgeek
arjuntechgeekhttps://github.com/arjuntechgeek
on Sep 5, 2024https://github.com/angular/angular/issues/50158#issuecomment-2331617090
https://github.com/digitalcraftco
digitalcraftcohttps://github.com/digitalcraftco
on Sep 5, 2024https://github.com/angular/angular/issues/50158#issuecomment-2331848480
@arjuntechgeekhttps://github.com/arjuntechgeek
https://angular.dev/errors/NG0912https://angular.dev/errors/NG0912
https://github.com/csuazag-pyxis
csuazag-pyxishttps://github.com/csuazag-pyxis
on Sep 10, 2024https://github.com/angular/angular/issues/50158#issuecomment-2341972422
https://angular.io/errors/NG0912https://angular.io/errors/NG0912
https://private-user-images.githubusercontent.com/159570585/366213823-0e157de6-fc31-43b0-a075-5ff8d20fe1f5.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyNDQyOTMsIm5iZiI6MTc5NTI0Mzk5MywicGF0aCI6Ii8xNTk1NzA1ODUvMzY2MjEzODIzLTBlMTU3ZGU2LWZjMzEtNDNiMC1hMDc1LTVmZjhkMjBmZTFmNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYxMTIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MTEyMVQwNjUzMTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZDdmMzhmM2NkYjRlNjE2MGIyNzQyYzVhMTRmNmJhOTcwOTg3NjMwMmI5MTE3MDMyMGJhOTBkYTgxMWE2MTQ2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.5EKC-79zIE0PKwpaI-HXIPnhzaQr_230OmMn3eJdGqk
https://github.com/DaSchTour
DaSchTourhttps://github.com/DaSchTour
on Sep 11, 2024https://github.com/angular/angular/issues/50158#issuecomment-2342958987
@arjuntechgeekhttps://github.com/arjuntechgeek
https://angular.dev/errors/NG0912https://angular.dev/errors/NG0912
https://github.com/gianluca-moro
gianluca-morohttps://github.com/gianluca-moro
on Oct 2, 2024https://github.com/angular/angular/issues/50158#issuecomment-2388347984
https://github.com/epelc
epelchttps://github.com/epelc
on Dec 9, 2024https://github.com/angular/angular/issues/50158#issuecomment-2529343249
https://github.com/jpike88
jpike88https://github.com/jpike88
on Jan 8, 2025https://github.com/angular/angular/issues/50158#issuecomment-2576783530
https://github.com/Friendsen
Friendsenhttps://github.com/Friendsen
on Jan 15, 2025https://github.com/angular/angular/issues/50158#issuecomment-2593376600
https://github.com/DaSchTour
DaSchTourhttps://github.com/DaSchTour
on Mar 5, 2025https://github.com/angular/angular/issues/50158#issuecomment-2700936489
https://github.com/peterblazejewicz
peterblazejewiczhttps://github.com/peterblazejewicz
on May 2, 2025https://github.com/angular/angular/issues/50158#issuecomment-2847138795
angular-architects/module-federation-plugin#811https://github.com/angular-architects/module-federation-plugin/issues/811
https://github.com/angular-architects/module-federation-plugin/releases/tag/19.0.19https://github.com/angular-architects/module-federation-plugin/releases/tag/19.0.19
https://github.com/jpike88
jpike88https://github.com/jpike88
on May 21, 2025https://github.com/angular/angular/issues/50158#issuecomment-2896842844
https://github.com/xsegrity
xsegrityhttps://github.com/xsegrity
on Jul 20, 2025https://github.com/angular/angular/issues/50158#issuecomment-3094734362
https://github.com/tripack91
tripack91https://github.com/tripack91
on Sep 16, 2025https://github.com/angular/angular/issues/50158#issuecomment-3299215779
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/50158
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/50158
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.