René's URL Explorer Experiment


Title: Ng Generator does not always save components in correct directory · Issue #7377 · angular/angular-cli · GitHub

Open Graph Title: Ng Generator does not always save components in correct directory · Issue #7377 · angular/angular-cli

X Title: Ng Generator does not always save components in correct directory · Issue #7377 · angular/angular-cli

Description: like #6431 Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.2.7 node: 6.10.1 os: darwin x64 @angular/animations: 4.3.3 @angular/cdk:...

Open Graph Description: like #6431 Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.2.7 node: 6.10.1 os: darwin x64 ...

X Description: like #6431 Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.2.7 node: 6.10.1 os: darwin x...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ng Generator does not always save components in correct directory","articleBody":"like #6431\r\n\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\n@angular/cli: 1.2.7\r\nnode: 6.10.1\r\nos: darwin x64\r\n@angular/animations: 4.3.3\r\n@angular/cdk: 2.0.0-beta.8\r\n@angular/common: 4.3.3\r\n@angular/compiler: 4.3.3\r\n@angular/core: 4.3.3\r\n@angular/flex-layout: 2.0.0-beta.8\r\n@angular/forms: 4.3.3\r\n@angular/http: 4.3.3\r\n@angular/material: 2.0.0-beta.8\r\n@angular/platform-browser: 4.3.3\r\n@angular/platform-browser-dynamic: 4.3.3\r\n@angular/router: 4.3.3\r\n@angular/cli: 1.2.7\r\n@angular/compiler-cli: 4.3.3\r\n\r\nMac OS Sierra\r\n\r\n\r\n### Repro steps.\r\nIt's hard to give repo steps because I haven't discovered exactly what I have to do to reproduce.\r\nHowever, once the behaviour starts for a project, it continues to behave this way. The only way I have found to fix it is to start a completely new project and copy all my code over.\r\n\r\nThe issue is well described in #6431.\r\nIn brief, \r\n\r\n1. I cd to a module directory in my project eg: `app/admin`\r\n\r\n1. I create a new component, eg `ng g c users`\r\n\r\nInstead of creating the new component inside `app/admin/users`, it creates it inside app, eg `app/users`\r\n\r\nIn addition it creates an incorrect import statement in app.module, eg:\r\n`import { UsersComponent } from './admin/src/app/users/users.component';`\r\n\r\nI have seen this happen twice now. I can be working with a project for months and months with it working correctly, then one day it just stops working the way it should. The only way I have been able to fix it is to generate a completely new project and copy all my code over to the new project.\r\n\r\n\r\n### The log given by the failure.\r\nN/A\r\n\r\n\r\n### Desired functionality.\r\n\r\nIt should create the component inside the admin directory, eg:\r\n`app/admin/users`\r\n\r\nand it should create a well formed import statement in admin.module, eg:\r\n`import { UsersComponent } from './users/users.component';`\r\n\r\n\r\n### Mention any other details that might be useful.\r\nWhen I create a brand new project it does what I want it to. I have no idea what I do to provoke this behaviour. I have gone through the following files with a fine tooth comb and can't find anything wrong:\r\n\r\n- `.angular-cli.json`\r\n- `package.json`\r\n- `tsconfig.json`\r\n- `src/tsconfig.app.json`\r\n\r\nI can't think of anywhere else to look.\r\n","author":{"url":"https://github.com/chriscurnow","@type":"Person","name":"chriscurnow"},"datePublished":"2017-08-14T02:31:15Z","url":"https://github.com/angular/angular-cli/issues/7377"}

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:eb68cf3f-144d-bb25-66a4-e8a23eb01c57
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDDB6:2E9D3B:32DDB8:3FDFF1:6B020978
html-safe-nonceffec77116cbe8efb24142880b4091835e976dc134f86636695649191341b755e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREI2OjJFOUQzQjozMkREQjg6M0ZERkYxOjZCMDIwOTc4IiwidmlzaXRvcl9pZCI6IjcxMDU0NDU0MjM1NzMyNDAxODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac74cb6630c57240bd347ab164ec6e215e471eaaed57d3627b4251730ec8218029
hovercard-subject-tagissue:249918630
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/7377/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c8ab0ff7ba44b5d56c091457d105d65bb58132c24bf42573adf0b210aaded2a2/angular/angular-cli/issues/7377
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c8ab0ff7ba44b5d56c091457d105d65bb58132c24bf42573adf0b210aaded2a2/angular/angular-cli/issues/7377
og:image:altlike #6431 Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.2.7 node: 6.10.1 os: darwin x64 ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechriscurnow
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/7377#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F7377
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%2F7377
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/7377
Reloadhttps://github.com/angular/angular-cli/issues/7377
Reloadhttps://github.com/angular/angular-cli/issues/7377
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/7377
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/7377
Ng Generator does not always save components in correct directoryhttps://github.com/angular/angular-cli/issues/7377#top
area: @schematics/angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40schematics%2Fangular%22
freq3: highhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq3%3A%20high%22
severity5: regressionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity5%3A%20regression%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
https://github.com/chriscurnow
chriscurnowhttps://github.com/chriscurnow
on Aug 14, 2017https://github.com/angular/angular-cli/issues/7377#issue-249918630
#6431https://github.com/angular/angular-cli/issues/6431
#6431https://github.com/angular/angular-cli/issues/6431
Nexthttps://github.com/angular/angular-cli/issues/7377?timeline_page=1
https://github.com/exequiel09
exequiel09https://github.com/exequiel09
on Aug 14, 2017https://github.com/angular/angular-cli/issues/7377#issuecomment-322152401
#7135https://github.com/angular/angular-cli/issues/7135
#7284https://github.com/angular/angular-cli/pull/7284
#7090https://github.com/angular/angular-cli/pull/7090
@Broccohttps://github.com/Brocco
https://github.com/grizzm0
grizzm0https://github.com/grizzm0
on Aug 14, 2017https://github.com/angular/angular-cli/issues/7377#issuecomment-322161541
https://github.com/exequiel09
exequiel09https://github.com/exequiel09
on Aug 14, 2017https://github.com/angular/angular-cli/issues/7377#issuecomment-322162019
@grizzm0https://github.com/grizzm0
https://github.com/grizzm0
grizzm0https://github.com/grizzm0
on Aug 14, 2017https://github.com/angular/angular-cli/issues/7377#issuecomment-322162845
@exequiel09https://github.com/exequiel09
https://github.com/chriscurnow
chriscurnowhttps://github.com/chriscurnow
on Aug 14, 2017https://github.com/angular/angular-cli/issues/7377#issuecomment-322336011
@grizzm0https://github.com/grizzm0
https://github.com/chriscurnow
chriscurnowhttps://github.com/chriscurnow
on Aug 16, 2017https://github.com/angular/angular-cli/issues/7377#issuecomment-322627189
@exequiel09https://github.com/exequiel09
#7135https://github.com/angular/angular-cli/issues/7135
filipesilvahttps://github.com/filipesilva
Broccohttps://github.com/Brocco
on Aug 24, 2017https://github.com/angular/angular-cli/issues/7377#event-1219591950
filipesilvahttps://github.com/filipesilva
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P1%22
severity5: regressionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity5%3A%20regression%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
on Aug 24, 2017https://github.com/angular/angular-cli/issues/7377#event-1219592140
https://github.com/krimple
krimplehttps://github.com/krimple
on Aug 28, 2017https://github.com/angular/angular-cli/issues/7377#issuecomment-325428130
https://github.com/chriscurnow
chriscurnowhttps://github.com/chriscurnow
on Oct 4, 2017https://github.com/angular/angular-cli/issues/7377#issuecomment-334018338
https://github.com/chriscurnow
chriscurnowhttps://github.com/chriscurnow
on Nov 23, 2017https://github.com/angular/angular-cli/issues/7377#issuecomment-346536570
https://github.com/zladuric
zladurichttps://github.com/zladuric
on Dec 15, 2017https://github.com/angular/angular-cli/issues/7377#issuecomment-351992105
hanslhttps://github.com/hansl
Broccohttps://github.com/Brocco
on Feb 6, 2018https://github.com/angular/angular-cli/issues/7377#event-1461027377
hanslhttps://github.com/hansl
freq3: highhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq3%3A%20high%22
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P1%22
on Feb 6, 2018https://github.com/angular/angular-cli/issues/7377#event-1461027551
https://github.com/chriscurnow
chriscurnowhttps://github.com/chriscurnow
on Feb 6, 2018https://github.com/angular/angular-cli/issues/7377#issuecomment-363574437
@hanslhttps://github.com/hansl
https://github.com/hansl
hanslhttps://github.com/hansl
on Feb 7, 2018https://github.com/angular/angular-cli/issues/7377#issuecomment-363914366
@chriscurnowhttps://github.com/chriscurnow
@Broccohttps://github.com/Brocco
https://github.com/chriscurnow
chriscurnowhttps://github.com/chriscurnow
on Feb 7, 2018https://github.com/angular/angular-cli/issues/7377#issuecomment-363953848
@hanslhttps://github.com/hansl
filipesilvahttps://github.com/filipesilva
comp: cli/generatehttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22comp%3A%20cli%2Fgenerate%22
on Feb 14, 2018https://github.com/angular/angular-cli/issues/7377#event-1473491060
https://github.com/chriscurnow
chriscurnowhttps://github.com/chriscurnow
on May 22, 2018https://github.com/angular/angular-cli/issues/7377#issuecomment-390885675
@hanslhttps://github.com/hansl
filipesilvahttps://github.com/filipesilva
area: @schematics/angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40schematics%2Fangular%22
comp: cli/generatehttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22comp%3A%20cli%2Fgenerate%22
on Jun 8, 2018https://github.com/angular/angular-cli/issues/7377#event-1670826042
https://github.com/chriscurnow
chriscurnowhttps://github.com/chriscurnow
on Jul 9, 2018https://github.com/angular/angular-cli/issues/7377#issuecomment-403349362
@hanslhttps://github.com/hansl
@filipesilvahttps://github.com/filipesilva
@Broccohttps://github.com/Brocco
chriscurnowhttps://github.com/chriscurnow
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 9, 2018https://github.com/angular/angular-cli/issues/7377#event-1722175608
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 8, 2019https://github.com/angular/angular-cli/issues/7377#issuecomment-529182770
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
Broccohttps://github.com/Brocco
on Sep 8, 2019https://github.com/angular/angular-cli/issues/7377#event-2616635125
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 8, 2019https://github.com/angular/angular-cli/issues/7377#event-2616635133
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/7377
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/7377
area: @schematics/angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40schematics%2Fangular%22
freq3: highhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq3%3A%20high%22
severity5: regressionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity5%3A%20regression%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
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.