René's URL Explorer Experiment


Title: [Feature Request] Better --module resolution for all generated types · Issue #5461 · angular/angular-cli · GitHub

Open Graph Title: [Feature Request] Better --module resolution for all generated types · Issue #5461 · angular/angular-cli

X Title: [Feature Request] Better --module resolution for all generated types · Issue #5461 · angular/angular-cli

Description: Bug Report or Feature Request (mark with an x) - [x] feature request Prerequisite Given a project ng new test-proj ng g m foo ng g m foo/bar Current functionality. When a user wants to pair a type with a module, the user has to specify t...

Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] feature request Prerequisite Given a project ng new test-proj ng g m foo ng g m foo/bar Current functionality. When a user wants to pair a type ...

X Description: Bug Report or Feature Request (mark with an x) - [x] feature request Prerequisite Given a project ng new test-proj ng g m foo ng g m foo/bar Current functionality. When a user wants to pair a type ...

Opengraph URL: https://github.com/angular/angular-cli/issues/5461

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature Request] Better --module resolution for all generated types","articleBody":"### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] feature request\r\n```\r\n\r\n### Prerequisite \r\nGiven a project\r\n```\r\nng new test-proj\r\nng g m foo\r\nng g m foo/bar\r\n```\r\n\r\n### Current functionality.\r\nWhen a user wants to pair a type with a module, the user has to specify the full path to the module, like so:\r\n```\r\nng g s baz --module=foo/foo.module\r\n```\r\nor\r\n```\r\nng g s baz --module=foo/foo.module.ts\r\n```\r\n\r\n### Desired functionality.\r\n\u003c!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n-->\r\nA user should also be able to enter the following command\r\n```\r\nng g s baz --module=foo\r\n```\r\n\r\n### Mention any other details that might be useful.\r\n\u003c!-- Please include a link to the repo if this is related to an OSS project. -->\r\nCurrently, the CLI will error when it can't find the module with\r\n```\r\nModule specified does not exist\r\n```\r\n\r\nWhen given\r\n```\r\nng g s baz --module=foo\r\n```\r\nthe CLI should preform the following module resolution\r\n```\r\nsrc/app/foo.module.ts\r\nsrc/app/foo/foo.module.ts\r\nError: Module specified does not exist\r\n```\r\n\r\nThis should not be exclusive to top level directories. This scenario should work as well.\r\n\r\nWhen given\r\n```\r\nng g s baz --module=foo/bar\r\n```\r\nthe CLI should preform the following module resolution\r\n```\r\nsrc/app/foo/bar.module.ts\r\nsrc/app/foo/bar/bar.module.ts\r\nError: Module specified does not exist\r\n```\r\n","author":{"url":"https://github.com/delasteve","@type":"Person","name":"delasteve"},"datePublished":"2017-03-17T00:41:25Z","url":"https://github.com/angular/angular-cli/issues/5461"}

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:cce16e58-409d-f778-0912-e3b38da42e25
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBCCE:1148D3:3F025EE:504A853:6B021F41
html-safe-nonce7c542f16d05b1349435c18d26dfdb68c5fadbf5afa0396c61bdd6c876d0e47ce
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0NFOjExNDhEMzozRjAyNUVFOjUwNEE4NTM6NkIwMjFGNDEiLCJ2aXNpdG9yX2lkIjoiNDk0OTA5MTM5MjUwMTcxODg1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac469e814ca2e8c64c8a73b217f3b147daadf7df2ca276f286e7a1f5654417111e
hovercard-subject-tagissue:214878239
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-cli/5461/issue_layout
twitter:imagehttps://opengraph.githubassets.com/91b9c3893885c49dacc3872a8ba215bac54ce4f2b920f19754edc80cbaf4365b/angular/angular-cli/issues/5461
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/91b9c3893885c49dacc3872a8ba215bac54ce4f2b920f19754edc80cbaf4365b/angular/angular-cli/issues/5461
og:image:altBug Report or Feature Request (mark with an x) - [x] feature request Prerequisite Given a project ng new test-proj ng g m foo ng g m foo/bar Current functionality. When a user wants to pair a type ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedelasteve
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/5461#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F5461
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-cli%2Fissues%2F5461
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-cli
Reloadhttps://github.com/angular/angular-cli/issues/5461
Reloadhttps://github.com/angular/angular-cli/issues/5461
Reloadhttps://github.com/angular/angular-cli/issues/5461
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/5461
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/5461
#5467https://github.com/angular/angular-cli/pull/5467
[Feature Request] Better --module resolution for all generated typeshttps://github.com/angular/angular-cli/issues/5461#top
#5467https://github.com/angular/angular-cli/pull/5467
https://github.com/delasteve
delastevehttps://github.com/delasteve
on Mar 17, 2017https://github.com/angular/angular-cli/issues/5461#issue-214878239
delastevehttps://github.com/delasteve
on Mar 17, 2017https://github.com/angular/angular-cli/issues/5461#event-1003875066
feat(@angular/cli): update generate module file resolutionhttps://github.com/delasteve/angular-cli/commit/cd79e49edac6e8b7f3e3025c0f48b7d1720d6267
https://docs.github.com/articles/closing-issues-via-commit-messages
cd79e49https://github.com/delasteve/angular-cli/commit/cd79e49edac6e8b7f3e3025c0f48b7d1720d6267
feat(@angular/cli): update generate command module file resolutionhttps://github.com/delasteve/angular-cli/commit/3267fc334bc35cf229869d92a307e2deaffe6564
https://docs.github.com/articles/closing-issues-via-commit-messages
3267fc3https://github.com/delasteve/angular-cli/commit/3267fc334bc35cf229869d92a307e2deaffe6564
feat(@angular/cli): update generate command module file resolutionhttps://github.com/delasteve/angular-cli/commit/07c994d9290f57bfc1146875aa65e6754554e70b
https://docs.github.com/articles/closing-issues-via-commit-messages
07c994dhttps://github.com/delasteve/angular-cli/commit/07c994d9290f57bfc1146875aa65e6754554e70b
refactor(@angular/cli): update generate command module file resolutionhttps://github.com/delasteve/angular-cli/commit/0183c2cfd6e02cce46110780be36ba770664b0b7
https://docs.github.com/articles/closing-issues-via-commit-messages
0183c2chttps://github.com/delasteve/angular-cli/commit/0183c2cfd6e02cce46110780be36ba770664b0b7
filipesilvahttps://github.com/filipesilva
post-1.0https://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22post-1.0%22
on Mar 17, 2017https://github.com/angular/angular-cli/issues/5461#event-1005093514
delastevehttps://github.com/delasteve
on Mar 18, 2017https://github.com/angular/angular-cli/issues/5461#event-1005491989
refactor(@angular/cli): update generate command module file resolutionhttps://github.com/delasteve/angular-cli/commit/14470e583a79f20e83f2231607f0099a4a5ed568
https://docs.github.com/articles/closing-issues-via-commit-messages
14470e5https://github.com/delasteve/angular-cli/commit/14470e583a79f20e83f2231607f0099a4a5ed568
refactor(@angular/cli): update generate command module file resolutionhttps://github.com/delasteve/angular-cli/commit/ce5db3cec9784d21f94c06058c0b9e9c5940334e
https://docs.github.com/articles/closing-issues-via-commit-messages
ce5db3chttps://github.com/delasteve/angular-cli/commit/ce5db3cec9784d21f94c06058c0b9e9c5940334e
filipesilvahttps://github.com/filipesilva
type: enhancementhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20enhancement%22
on Mar 29, 2017https://github.com/angular/angular-cli/issues/5461#event-1020056843
delastevehttps://github.com/delasteve
on Mar 30, 2017https://github.com/angular/angular-cli/issues/5461#event-1022845708
refactor(@angular/cli): update generate command module file resolutionhttps://github.com/delasteve/angular-cli/commit/c9a621958f2c321dc9c63227c01bd396dc9aa831
https://docs.github.com/articles/closing-issues-via-commit-messages
c9a6219https://github.com/delasteve/angular-cli/commit/c9a621958f2c321dc9c63227c01bd396dc9aa831
refactor(@angular/cli): update generate command module file resolutionhttps://github.com/delasteve/angular-cli/commit/44e2dc39a440ef620c1f167e9f4e005ac7aec26c
https://docs.github.com/articles/closing-issues-via-commit-messages
44e2dc3https://github.com/delasteve/angular-cli/commit/44e2dc39a440ef620c1f167e9f4e005ac7aec26c
filipesilvahttps://github.com/filipesilva
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#5467https://github.com/angular/angular-cli/pull/5467
on Mar 30, 2017https://github.com/angular/angular-cli/issues/5461#event-1023006730
filipesilvahttps://github.com/filipesilva
on Mar 30, 2017https://github.com/angular/angular-cli/issues/5461#event-1023006850
refactor(@angular/cli): update generate command module file resolutionhttps://github.com/angular/angular-cli/commit/314167325486ffc466326fa015d769aed9555c0b
https://docs.github.com/articles/closing-issues-via-commit-messages
3141673https://github.com/angular/angular-cli/commit/314167325486ffc466326fa015d769aed9555c0b
dond2cloudshttps://github.com/dond2clouds
on Apr 23, 2018https://github.com/angular/angular-cli/issues/5461#event-1589896370
refactor(@angular/cli): update generate command module file resolutionhttps://github.com/d2clouds/speedray-cli/commit/441b4fd0aaace9bce3dbd246939d232e96dd2428
https://docs.github.com/articles/closing-issues-via-commit-messages
441b4fdhttps://github.com/d2clouds/speedray-cli/commit/441b4fd0aaace9bce3dbd246939d232e96dd2428
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 6, 2019https://github.com/angular/angular-cli/issues/5461#issuecomment-529047827
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 6, 2019https://github.com/angular/angular-cli/issues/5461#event-2615838211
mostafaibrhttps://github.com/mostafaibr
on May 29, 2026https://github.com/angular/angular-cli/issues/5461#event-26099513143
refactor(@angular/cli): update generate command module file resolutionhttps://github.com/mostafaibr/angular-cli/commit/4d49c1b4965e1f3e84f4e37ec17f9eed1f68bcac
https://docs.github.com/articles/closing-issues-via-commit-messages
4d49c1bhttps://github.com/mostafaibr/angular-cli/commit/4d49c1b4965e1f3e84f4e37ec17f9eed1f68bcac
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/5461
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/5461
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.