René's URL Explorer Experiment


Title: Angular cli Generates Wrong Directory Path in app.module.ts · Issue #7135 · angular/angular-cli · GitHub

Open Graph Title: Angular cli Generates Wrong Directory Path in app.module.ts · Issue #7135 · angular/angular-cli

X Title: Angular cli Generates Wrong Directory Path in app.module.ts · Issue #7135 · angular/angular-cli

Description: Bug Report or Feature Request (mark with an x) bug report feature request Versions. node -v : v6.10.0 npm -v : 5.3.0 ng -v : @angular/cli: 1.2.4 node: 6.10.0 os: darwin x64 Repro steps. install the latest angular-cli (version : 1.2.4) go...

Open Graph Description: Bug Report or Feature Request (mark with an x) bug report feature request Versions. node -v : v6.10.0 npm -v : 5.3.0 ng -v : @angular/cli: 1.2.4 node: 6.10.0 os: darwin x64 Repro steps. install the...

X Description: Bug Report or Feature Request (mark with an x) bug report feature request Versions. node -v : v6.10.0 npm -v : 5.3.0 ng -v : @angular/cli: 1.2.4 node: 6.10.0 os: darwin x64 Repro steps. install the...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular cli Generates Wrong Directory Path in app.module.ts","articleBody":"### Bug Report or Feature Request (mark with an `x`)\r\n- [x] bug report\r\n- [ ] feature request\r\n\r\n### Versions.\r\n\r\nnode -v : v6.10.0\r\nnpm -v : 5.3.0\r\nng -v : \r\n```\r\n@angular/cli: 1.2.4\r\nnode: 6.10.0\r\nos: darwin x64\r\n```\r\n\r\n### Repro steps.\r\n\r\n- install the latest angular-cli (version : 1.2.4)\r\n- go in the desired repository\r\n- run the command `ng new myProject`\r\n- go in the created project\r\n- go in myProject/src/app and create a folder \"common\"\r\n- go in \"common\" folder \r\n- run `ng g c myComponent`\r\n\r\n\r\n### The log given by the failure.\r\n- the component is created at the right location : \r\n```\r\ninstalling component\r\n  create src/app/common/my-component/my-component.component.css\r\n  create src/app/common/my-component/my-component.component.html\r\n  create src/app/common/my-component/my-component.component.spec.ts\r\n  create src/app/common/my-component/my-component.component.ts\r\n  update src/app/app.module.ts\r\n```\r\n- but the path written in \"app.module.ts\" is wrong\r\n```\r\nERROR in /Users/u.name/myProject/src/app/app.module.ts (5,38): Cannot find module './common/src/app/common/my-component/my-component.component'.\r\n\r\nERROR in ./src/app/app.module.ts\r\nModule not found: Error: Can't resolve './common/src/app/common/my-component/my-component.component' in '/Users/u.name/myPoject/src/app'\r\n @ ./src/app/app.module.ts 10:0-99\r\n @ ./src/main.ts\r\n @ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts\r\n```\r\n\r\n\r\n### Desired functionality.\r\nThe path written is constantly adding \"src/app\" part whereas older version of the cli did not have this behavior\r\nThe correct import statement should be : \r\n`import { MyComponentComponent } from './common/my-component/my-component.component';`\r\n\r\n\r\n### Mention any other details that might be useful.\r\nThis issue has also been reported on StackOverflow by another user : \r\nhttps://stackoverflow.com/questions/45293787/angular-cli-generates-wrong-directory-path-in-app-module-ts\r\n\r\n","author":{"url":"https://github.com/djtahl","@type":"Person","name":"djtahl"},"datePublished":"2017-07-25T14:07:50Z","url":"https://github.com/angular/angular-cli/issues/7135"}

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:c9c97f4e-c5b3-a709-0270-7582de944a1b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9912:1EFF:A1E37E:D789AE:6B020276
html-safe-noncee394a9748d36ed1ce39fc00fb0a51b96bb83e6547d43399b5abd957ca23afb72
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTEyOjFFRkY6QTFFMzdFOkQ3ODlBRTo2QjAyMDI3NiIsInZpc2l0b3JfaWQiOiIxNTQ3NDUzMTk4MjgwOTU2MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac271a329b728746fbd40f535ed4b62e9bf9f6ca3606fdbab0dac89f92da469973
hovercard-subject-tagissue:245413712
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/7135/issue_layout
twitter:imagehttps://opengraph.githubassets.com/78ce39e25fb82a8c0f5edd81e29f8af30e3ea88a62df17fbed1d61e37aae66ed/angular/angular-cli/issues/7135
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/78ce39e25fb82a8c0f5edd81e29f8af30e3ea88a62df17fbed1d61e37aae66ed/angular/angular-cli/issues/7135
og:image:altBug Report or Feature Request (mark with an x) bug report feature request Versions. node -v : v6.10.0 npm -v : 5.3.0 ng -v : @angular/cli: 1.2.4 node: 6.10.0 os: darwin x64 Repro steps. install the...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedjtahl
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/7135#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F7135
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%2F7135
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/7135
Reloadhttps://github.com/angular/angular-cli/issues/7135
Reloadhttps://github.com/angular/angular-cli/issues/7135
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/7135
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/7135
#7284https://github.com/angular/angular-cli/pull/7284
Angular cli Generates Wrong Directory Path in app.module.tshttps://github.com/angular/angular-cli/issues/7135#top
#7284https://github.com/angular/angular-cli/pull/7284
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
needs: investigationRequires some digging to determine if action is neededhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20investigation%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/djtahl
djtahlhttps://github.com/djtahl
on Jul 25, 2017https://github.com/angular/angular-cli/issues/7135#issue-245413712
https://stackoverflow.com/questions/45293787/angular-cli-generates-wrong-directory-path-in-app-module-tshttps://stackoverflow.com/questions/45293787/angular-cli-generates-wrong-directory-path-in-app-module-ts
Nexthttps://github.com/angular/angular-cli/issues/7135?timeline_page=1
https://github.com/exequiel09
exequiel09https://github.com/exequiel09
on Jul 26, 2017https://github.com/angular/angular-cli/issues/7135#issuecomment-318017750
https://github.com/fsx999
fsx999https://github.com/fsx999
on Jul 26, 2017https://github.com/angular/angular-cli/issues/7135#issuecomment-318024798
https://github.com/Itisfilipe
Itisfilipehttps://github.com/Itisfilipe
on Jul 26, 2017https://github.com/angular/angular-cli/issues/7135#issuecomment-318071750
https://github.com/hiepxanh
hiepxanhhttps://github.com/hiepxanh
on Jul 27, 2017https://github.com/angular/angular-cli/issues/7135#issuecomment-318237089
https://github.com/cyrilletuzi
cyrilletuzihttps://github.com/cyrilletuzi
on Jul 28, 2017https://github.com/angular/angular-cli/issues/7135#issuecomment-318644069
@filipesilvahttps://github.com/filipesilva
#6861https://github.com/angular/angular-cli/pull/6861
filipesilvahttps://github.com/filipesilva
Broccohttps://github.com/Brocco
on Jul 28, 2017https://github.com/angular/angular-cli/issues/7135#event-1183691759
filipesilvahttps://github.com/filipesilva
needs: investigationRequires some digging to determine if action is neededhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20investigation%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
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 Jul 28, 2017https://github.com/angular/angular-cli/issues/7135#event-1183692107
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Jul 28, 2017https://github.com/angular/angular-cli/issues/7135#issuecomment-318679341
@Broccohttps://github.com/Brocco
https://github.com/djtahl
djtahlhttps://github.com/djtahl
on Jul 30, 2017https://github.com/angular/angular-cli/issues/7135#issuecomment-318908402
https://github.com/deveshjadon98
deveshjadon98https://github.com/deveshjadon98
on Jul 31, 2017https://github.com/angular/angular-cli/issues/7135#issuecomment-319056170
@djtahlhttps://github.com/djtahl
https://github.com/deveshjadon98
deveshjadon98https://github.com/deveshjadon98
on Jul 31, 2017https://github.com/angular/angular-cli/issues/7135#issuecomment-319057376
https://github.com/cyrilletuzi
cyrilletuzihttps://github.com/cyrilletuzi
on Aug 3, 2017https://github.com/angular/angular-cli/issues/7135#issuecomment-320090504
#6533https://github.com/angular/angular-cli/issues/6533
#7061https://github.com/angular/angular-cli/issues/7061
hanslhttps://github.com/hansl
on Aug 23, 2017https://github.com/angular/angular-cli/issues/7135#event-1218686004
test: Add tests for running 'generate' in a subdirectory (#7135) (#7284)https://github.com/angular/angular-cli/commit/cff3270dc88f8af53002f35228aa1b5db42aa1cc
#7135https://github.com/angular/angular-cli/issues/7135
#7284https://github.com/angular/angular-cli/pull/7284
cff3270https://github.com/angular/angular-cli/commit/cff3270dc88f8af53002f35228aa1b5db42aa1cc
https://github.com/hansl
hanslhttps://github.com/hansl
on Aug 23, 2017https://github.com/angular/angular-cli/issues/7135#issuecomment-324468635
hanslhttps://github.com/hansl
on Aug 23, 2017https://github.com/angular/angular-cli/issues/7135#event-1218693865
fix(@angular/cli): fix import path for component when importing into …https://github.com/angular/angular-cli/commit/cc32f56078477382e111691aab3bf60f683c9dc8
https://docs.github.com/articles/closing-issues-via-commit-messages
cc32f56https://github.com/angular/angular-cli/commit/cc32f56078477382e111691aab3bf60f683c9dc8
test(@angular/cli): Add tests for running 'generate' in a subdirectory (https://github.com/angular/angular-cli/commit/2ecbe3d69025179be4310bb9d21e4593505d61df
https://docs.github.com/articles/closing-issues-via-commit-messages
2ecbe3dhttps://github.com/angular/angular-cli/commit/2ecbe3d69025179be4310bb9d21e4593505d61df
test(@angular/cli): Add more tests for running 'generate' in a subdir…https://github.com/angular/angular-cli/commit/c66c66b58b6f232d55f5ce5eebfcb36e1bff280f
https://docs.github.com/articles/closing-issues-via-commit-messages
c66c66bhttps://github.com/angular/angular-cli/commit/c66c66b58b6f232d55f5ce5eebfcb36e1bff280f
andrewkwwhttps://github.com/andrewkww
on Aug 24, 2017https://github.com/angular/angular-cli/issues/7135#event-1218931009
test: Add tests for running 'generate' in a subdirectory (angular#7135)…https://github.com/andrewkww/angular-cli/commit/d9de830407f89ce1e9caf79e3256b086719bb19b
angular#7135https://github.com/angular/angular-cli/issues/7135
d9de830https://github.com/andrewkww/angular-cli/commit/d9de830407f89ce1e9caf79e3256b086719bb19b
https://github.com/andrewkww
andrewkwwhttps://github.com/andrewkww
on Aug 24, 2017https://github.com/angular/angular-cli/issues/7135#issuecomment-324510689
@hanslhttps://github.com/hansl
andrewkwwhttps://github.com/andrewkww
on Aug 24, 2017https://github.com/angular/angular-cli/issues/7135#event-1218936790
test(@angular/cli): Add tests for running 'generate' in a subdirectory (https://github.com/andrewkww/angular-cli/commit/6f3d23a3820eb7368e528a53017e7694293d7e1d
6f3d23ahttps://github.com/andrewkww/angular-cli/commit/6f3d23a3820eb7368e528a53017e7694293d7e1d
test(@angular/cli): Add more tests for running 'generate' in a subdir…https://github.com/andrewkww/angular-cli/commit/3ba85a0542f67f1d30f7a96621dcfc3192812954
3ba85a0https://github.com/andrewkww/angular-cli/commit/3ba85a0542f67f1d30f7a96621dcfc3192812954
hanslhttps://github.com/hansl
on Aug 25, 2017https://github.com/angular/angular-cli/issues/7135#event-1221986299
test: Add tests for running 'generate' in a subdirectory (#7135) (#7284)https://github.com/angular/angular-cli/commit/50c957be08f4e46e6e37638ab895a9f902ff4fab
#7135https://github.com/angular/angular-cli/issues/7135
#7284https://github.com/angular/angular-cli/pull/7284
50c957bhttps://github.com/angular/angular-cli/commit/50c957be08f4e46e6e37638ab895a9f902ff4fab
https://github.com/nemeth-tibor
nemeth-tiborhttps://github.com/nemeth-tibor
on Jan 11, 2018https://github.com/angular/angular-cli/issues/7135#issuecomment-357081386
dond2cloudshttps://github.com/dond2clouds
on Apr 23, 2018https://github.com/angular/angular-cli/issues/7135#event-1589896712
test: Add tests for running 'generate' in a subdirectory (angular#7135)…https://github.com/d2clouds/speedray-cli/commit/6366199a97eac2a5caf4193f30aa704d591c558e
angular#7135https://github.com/angular/angular-cli/issues/7135
6366199https://github.com/d2clouds/speedray-cli/commit/6366199a97eac2a5caf4193f30aa704d591c558e
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 7, 2019https://github.com/angular/angular-cli/issues/7135#issuecomment-529145297
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 7, 2019https://github.com/angular/angular-cli/issues/7135#event-2616409365
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 7, 2019https://github.com/angular/angular-cli/issues/7135#event-2616409377
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/7135
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/7135
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
needs: investigationRequires some digging to determine if action is neededhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20investigation%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.