René's URL Explorer Experiment


Title: Why is Angular Lazy loading and routing not working after migrating to Angular 6 ? · Issue #19092 · angular/angular-cli · GitHub

Open Graph Title: Why is Angular Lazy loading and routing not working after migrating to Angular 6 ? · Issue #19092 · angular/angular-cli

X Title: Why is Angular Lazy loading and routing not working after migrating to Angular 6 ? · Issue #19092 · angular/angular-cli

Description: In my application , lazy loading was perfectly working in Angular 4 and 5 . However , after I migrated to Angular 6 , the lazy loading and routing has stopped working when I use ng serve. The routes for the application are defined in app...

Open Graph Description: In my application , lazy loading was perfectly working in Angular 4 and 5 . However , after I migrated to Angular 6 , the lazy loading and routing has stopped working when I use ng serve. The route...

X Description: In my application , lazy loading was perfectly working in Angular 4 and 5 . However , after I migrated to Angular 6 , the lazy loading and routing has stopped working when I use ng serve. The route...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Why is Angular Lazy loading and routing not working after migrating to Angular 6 ?","articleBody":"In my application , lazy loading was perfectly working in Angular 4 and 5 . However , after I migrated to Angular 6 , the lazy loading and routing has stopped working when I use ng serve.\r\n\r\nThe routes for the application are defined in `app.module.ts` like this  :\r\n\r\n\t\t\t    RouterModule.forRoot([\r\n\t\t\t\t  { path: 'info/:gitCode/:pemCode/:getRtComponent', component: RedComponent },\r\n\t\t\t\t  { path: 'info/:gitCode/:pemCode/:getFaq/:getRtComponent', component: RedComponent },\r\n\t\t\t\t  { path: 'loadGuardsInfo/:gitCode/:pemCode/:getRtComponent', component: RedComponent },\r\n\t\t\t\t  { path: 'loadGuardsInfo/:getRtComponent', component: RedComponent },\r\n\t\t\t\t  { path: 'recDet', component: RecDetComponent },\r\n\t\t\t\t  { path: 'SlaveComponent/:pfScreen', loadChildren: './ally/slave/slave.module#SlaveModule' },\r\n\t\t\t\t  { path: 'MasterComponent/:pfScreen', loadChildren: './ally/master/master.module#MasterModule' },\r\n\t\t\t\t  { path: 'DashedComponent/:pfScreen', loadChildren: './ally/dashed/dashed.module#DashedModule' }\r\n\t\t\t\t  ])\r\n\t\t\t  ],\r\n\t\t\t  providers: [ReqService, { provide: APP_BASE_HREF, useValue: './' }, {\r\n\t\t\t\tprovide: ErrorHandler,\r\n\t\t\t\tuseClass: GlobalErrorHandler\r\n\t\t\t  }, { provide: LocationStrategy, useClass: HashLocationStrategy }],\r\n\t\t\t  bootstrap: [AppComponent],\r\n\t\t\t  exports: []\r\n\r\nI have gone through a lot of articles on the internet about this and tried out a lot of things , but none worked . While migrating from angular 5 to 6, a lot of configurations in the old code got changed like : `angular-cli.json` got changed to `angular.json` . Lot of packages in  `package.json` got upgraded and 2 new packages got introduced : `@angular-devkit/build-angular` and `rxjs-compat` . The package : `@angular-devkit/build-angular` seems to be utilized by the `angular.json` for build and serve . I am not understanding why the migration has broken the routing and lazy loading .\r\n\r\nCan someone please help me out here ?\r\n\r\nMy `Package.json` dependencies are listed below :  \r\n\r\n\t\t\"dependencies\": {\r\n\t\t\t\"@angular/animations\": \"^6.1.10\",\r\n\t\t\t\"@angular/common\": \"^6.1.10\",\r\n\t\t\t\"@angular/compiler\": \"^6.1.10\",\r\n\t\t\t\"@angular/core\": \"^6.1.10\",\r\n\t\t\t\"@angular/forms\": \"^6.1.10\",\r\n\t\t\t\"@angular/http\": \"^6.1.10\",\r\n\t\t\t\"@angular/platform-browser\": \"^6.1.10\",\r\n\t\t\t\"@angular/platform-browser-dynamic\": \"^6.1.10\",\r\n\t\t\t\"@angular/platform-server\": \"^6.1.10\",\r\n\t\t\t\"@angular/router\": \"^6.1.10\",\r\n\t\t\t\"@ng-idle/core\": \"^6.0.0-beta.5\",\r\n\t\t\t\"@ng-idle/keepalive\": \"^6.0.0-beta.5\",\r\n\t\t\t\"ag-grid\": \"14.2.0\",\r\n\t\t\t\"ag-grid-angular\": \"14.2.0\",\r\n\t\t\t\"angular-polyfills\": \"1.0.1\",\r\n\t\t\t\"angular2-uuid\": \"1.1.1\",\r\n\t\t\t\"bootstrap\": \"3.3.7\",\r\n\t\t\t\"core-js\": \"2.5.3\",\r\n\t\t\t\"exceljs\": \"1.0.0\",\r\n\t\t\t\"file-saver\": \"1.3.3\",\r\n\t\t\t\"font-awesome\": \"4.7.0\",\r\n\t\t\t\"http-proxy\": \"1.16.2\",\r\n\t\t\t\"primeng\": \"4.3.0\",\r\n\t\t\t\"rxjs\": \"^6.6.3\",\r\n\t\t\t\"rxjs-compat\": \"^6.2.0\",\r\n\t\t\t\"ts-helpers\": \"1.1.2\",\r\n\t\t\t\"xlsx\": \"0.10.9\",\r\n\t\t\t\"zone.js\": \"^0.8.29\"\r\n\t\t  },\r\n\t\t  \"devDependencies\": {\r\n\t\t\t\"@angular-devkit/build-angular\": \"~0.8.0\",\r\n\t\t\t\"@angular/cli\": \"^6.2.9\",\r\n\t\t\t\"@angular/compiler-cli\": \"^6.1.10\",\r\n\t\t\t\"@types/jasmine\": \"2.8.6\",\r\n\t\t\t\"@types/node\": \"7.0.57\",\r\n\t\t\t\"@types/systemjs\": \"0.20.6\",\r\n\t\t\t\"codelyzer\": \"^6.0.0\",\r\n\t\t\t\"jasmine-core\": \"2.6.4\",\r\n\t\t\t\"jasmine-spec-reporter\": \"4.2.1\",\r\n\t\t\t\"jquery\": \"3.3.1\",\r\n\t\t\t\"jquery-ui\": \"1.12.1\",\r\n\t\t\t\"karma\": \"1.3.0\",\r\n\t\t\t\"karma-chrome-launcher\": \"2.1.1\",\r\n\t\t\t\"karma-cli\": \"1.0.1\",\r\n\t\t\t\"karma-html-reporter\": \"0.1.3\",\r\n\t\t\t\"karma-htmlfile-reporter\": \"0.3.5\",\r\n\t\t\t\"karma-jasmine\": \"1.1.1\",\r\n\t\t\t\"karma-remap-istanbul\": \"0.2.2\",\r\n\t\t\t\"karma-story-reporter\": \"0.3.1\",\r\n\t\t\t\"protractor\": \"4.0.14\",\r\n\t\t\t\"ts-node\": \"3.0.4\",\r\n\t\t\t\"tslint\": \"5.9.1\",\r\n\t\t\t\"typescript\": \"^2.7.2\"\r\n\t\t  }","author":{"url":"https://github.com/kunal00731","@type":"Person","name":"kunal00731"},"datePublished":"2020-10-15T21:45:37Z","url":"https://github.com/angular/angular-cli/issues/19092"}

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:a7f43696-c8dc-dff9-39b8-b558ed5f2729
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEB16:DB09F:13154E2:185C90D:6B0127DA
html-safe-noncebde4dd0ce8d2f5c6d897333da27bfe7e86c7000bbe594e23fd444ae8253f1130
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjE2OkRCMDlGOjEzMTU0RTI6MTg1QzkwRDo2QjAxMjdEQSIsInZpc2l0b3JfaWQiOiI1ODA0NjcxNDQzNjIzMDI4Njk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca6cbef7acc28b66604c031ed8c7c3f38de714a354bad6245db54b009d33d8184
hovercard-subject-tagissue:722696878
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/19092/issue_layout
twitter:imagehttps://opengraph.githubassets.com/265ed0a6c04d900f656234a3686dafc1ca15904ad085fa52406aa076044d8f78/angular/angular-cli/issues/19092
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/265ed0a6c04d900f656234a3686dafc1ca15904ad085fa52406aa076044d8f78/angular/angular-cli/issues/19092
og:image:altIn my application , lazy loading was perfectly working in Angular 4 and 5 . However , after I migrated to Angular 6 , the lazy loading and routing has stopped working when I use ng serve. The route...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekunal00731
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/19092#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F19092
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%2F19092
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/19092
Reloadhttps://github.com/angular/angular-cli/issues/19092
Reloadhttps://github.com/angular/angular-cli/issues/19092
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/19092
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/19092
Why is Angular Lazy loading and routing not working after migrating to Angular 6 ?https://github.com/angular/angular-cli/issues/19092#top
https://github.com/kunal00731
kunal00731https://github.com/kunal00731
on Oct 15, 2020https://github.com/angular/angular-cli/issues/19092#issue-722696878
https://github.com/destus90
destus90https://github.com/destus90
on Oct 16, 2020https://github.com/angular/angular-cli/issues/19092#issuecomment-709728322
https://github.com/kunal00731
kunal00731https://github.com/kunal00731
on Oct 16, 2020https://github.com/angular/angular-cli/issues/19092#issuecomment-709781674
@destus90https://github.com/destus90
https://update.angular.io/?l=3&v=7.0-8.0https://update.angular.io/?l=3&v=7.0-8.0
https://github.com/geromegrignon
geromegrignonhttps://github.com/geromegrignon
on Oct 16, 2020https://github.com/angular/angular-cli/issues/19092#issuecomment-709894831
@kunal00731https://github.com/kunal00731
https://github.com/kunal00731
kunal00731https://github.com/kunal00731
on Oct 16, 2020https://github.com/angular/angular-cli/issues/19092#issuecomment-709907520
@geromegrignonhttps://github.com/geromegrignon
https://user-images.githubusercontent.com/5189286/96235171-12dffb80-0fb8-11eb-8cb3-640cb927fbae.png
https://user-images.githubusercontent.com/5189286/96235222-25f2cb80-0fb8-11eb-9832-5a44f44ab04e.png
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Oct 16, 2020https://github.com/angular/angular-cli/issues/19092#issuecomment-709912421
@kunal00731https://github.com/kunal00731
https://angular.io/guide/releases#support-policy-and-schedulehttps://angular.io/guide/releases#support-policy-and-schedule
https://github.com/kunal00731
kunal00731https://github.com/kunal00731
on Oct 16, 2020https://github.com/angular/angular-cli/issues/19092#issuecomment-710123328
@alan-agius4https://github.com/alan-agius4
@destus90https://github.com/destus90
@geromegrignonhttps://github.com/geromegrignon
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Oct 16, 2020https://github.com/angular/angular-cli/issues/19092#issuecomment-710505503
@kunal00731https://github.com/kunal00731
alan-agius4https://github.com/alan-agius4
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 16, 2020https://github.com/angular/angular-cli/issues/19092#event-3887945332
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 16, 2020https://github.com/angular/angular-cli/issues/19092#issuecomment-727811690
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 16, 2020https://github.com/angular/angular-cli/issues/19092#event-3998943315
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/19092
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/19092
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.