{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/9488","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/9488/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/9488/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/9488/events","html_url":"https://github.com/angular/angular-cli/issues/9488","id":293901975,"number":9488,"title":"Lazy loaded chunk not generated when lazy route is a child of non-lazy route.","user":{"login":"jdcrecur","id":2738844,"avatar_url":"https://avatars2.githubusercontent.com/u/2738844?v=4","gravatar_id":"","url":"https://api.github.com/users/jdcrecur","html_url":"https://github.com/jdcrecur","followers_url":"https://api.github.com/users/jdcrecur/followers","following_url":"https://api.github.com/users/jdcrecur/following{/other_user}","gists_url":"https://api.github.com/users/jdcrecur/gists{/gist_id}","starred_url":"https://api.github.com/users/jdcrecur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdcrecur/subscriptions","organizations_url":"https://api.github.com/users/jdcrecur/orgs","repos_url":"https://api.github.com/users/jdcrecur/repos","events_url":"https://api.github.com/users/jdcrecur/events{/privacy}","received_events_url":"https://api.github.com/users/jdcrecur/received_events","type":"User","site_admin":false},"labels":[{"id":343381718,"url":"https://api.github.com/repos/angular/angular-cli/labels/comp:%20cli/build","name":"comp: cli/build","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-02-02T14:16:10Z","updated_at":"2018-03-04T13:07:52Z","closed_at":null,"author_association":"NONE","body":"### Versions\r\n```\r\nAngular CLI: 1.6.6\r\nNode: 8.9.4\r\nOS: linux x64\r\nAngular: 5.2.2\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, router, service-worker\r\n\r\n@angular/cdk: 5.1.0\r\n@angular/cli: 1.6.6\r\n@angular/material: 5.1.0\r\n@angular-devkit/build-optimizer: 0.0.42\r\n@angular-devkit/core: 0.0.29\r\n@angular-devkit/schematics: 0.0.52\r\n@ngtools/json-schema: 1.1.0\r\n@ngtools/webpack: 1.9.6\r\n@schematics/angular: 0.1.17\r\ntypescript: 2.4.2\r\nwebpack-bundle-analyzer: 2.9.2\r\nwebpack: 3.10.0\r\n```\r\n\r\n### Repro steps\r\n* Create an angular 5 app\r\n* In the main root module load 2 routes by module, but not lazy loaded.\r\n* In one of the child modules, lazy load subsequent modules\r\n\r\n### Observed behavior\r\n```\r\nError thrown when loading the lazy route. When search for the chunk expected in the filesystem it is not there.\r\n```\r\n\r\n### Desired behavior\r\nThe lazy loaded route is loaded via a chunk create created by webpack\r\n\r\n### Mention any other details that might be useful (optional)\r\nSO question raised, but nobody has an answer:\r\nhttps://stackoverflow.com/questions/48523411/angular-5-with-angular-cli-non-lazy-loading-modules-in-the-router\r\n\r\nDemo code of the exact issue on github:\r\nhttps://github.com/jdcrecur/ang5ModuleRouting\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/370228154","html_url":"https://github.com/angular/angular-cli/issues/9488#issuecomment-370228154","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/9488","id":370228154,"user":{"login":"FirassKoubaa","id":12677901,"avatar_url":"https://avatars2.githubusercontent.com/u/12677901?v=4","gravatar_id":"","url":"https://api.github.com/users/FirassKoubaa","html_url":"https://github.com/FirassKoubaa","followers_url":"https://api.github.com/users/FirassKoubaa/followers","following_url":"https://api.github.com/users/FirassKoubaa/following{/other_user}","gists_url":"https://api.github.com/users/FirassKoubaa/gists{/gist_id}","starred_url":"https://api.github.com/users/FirassKoubaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FirassKoubaa/subscriptions","organizations_url":"https://api.github.com/users/FirassKoubaa/orgs","repos_url":"https://api.github.com/users/FirassKoubaa/repos","events_url":"https://api.github.com/users/FirassKoubaa/events{/privacy}","received_events_url":"https://api.github.com/users/FirassKoubaa/received_events","type":"User","site_admin":false},"created_at":"2018-03-04T13:07:52Z","updated_at":"2018-03-04T13:07:52Z","author_association":"NONE","body":"@RyanLynnWood that did not sole the issue for me , still struggling"}}
{"actor":{"display_login":"FirassKoubaa"}}