Title: Nested lazy loading no longer works, bundles not being generated - beta 24 · Issue #3663 · angular/angular-cli · GitHub
Open Graph Title: Nested lazy loading no longer works, bundles not being generated - beta 24 · Issue #3663 · angular/angular-cli
X Title: Nested lazy loading no longer works, bundles not being generated - beta 24 · Issue #3663 · angular/angular-cli
Description: Please provide us with the following information: OS? Windows 10 Versions. angular-cli: 1.0.0-beta.24 node: 7.2.1 os: win32 x64 @angular/common: 2.3.1 @angular/compiler: 2.3.1 @angular/core: 2.3.1 @angular/forms: 2.3.1 @angular/http: 2.3...
Open Graph Description: Please provide us with the following information: OS? Windows 10 Versions. angular-cli: 1.0.0-beta.24 node: 7.2.1 os: win32 x64 @angular/common: 2.3.1 @angular/compiler: 2.3.1 @angular/core: 2.3.1 ...
X Description: Please provide us with the following information: OS? Windows 10 Versions. angular-cli: 1.0.0-beta.24 node: 7.2.1 os: win32 x64 @angular/common: 2.3.1 @angular/compiler: 2.3.1 @angular/core: 2.3.1 ...
Opengraph URL: https://github.com/angular/angular-cli/issues/3663
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Nested lazy loading no longer works, bundles not being generated - beta 24","articleBody":"> Please provide us with the following information:\r\n> ---------------------------------------------------------------\r\n\r\n### OS?\r\nWindows 10\r\n\r\n### Versions.\r\nangular-cli: 1.0.0-beta.24\r\nnode: 7.2.1\r\nos: win32 x64\r\n@angular/common: 2.3.1\r\n@angular/compiler: 2.3.1\r\n@angular/core: 2.3.1\r\n@angular/forms: 2.3.1\r\n@angular/http: 2.3.1\r\n@angular/platform-browser: 2.3.1\r\n@angular/platform-browser-dynamic: 2.3.1\r\n@angular/router: 3.3.1\r\n@angular/compiler-cli: 2.3.1\r\n\r\n(Tried angular 2.4 too)\r\n\r\n\r\n### Repro steps.\r\nApp was created with cli (beta 5). Lazy loading was working with beta.22-1. No longer works after upgrading to beta 24.\r\nHave many nested levels of lazy loaded routes. App routing module lazy loads a module, which lazy loads another, in some cases 4 levels deep.\r\none => two => three => four\r\nBundles are no longer being created for 4th level lazy loaded routes. (I get about 10 bundles in my app compared to about 25 when its working)\r\nWorkaround - If I cut and paste the routes exactly as they are (I did change the paths to fake paths so they wont ever be matched) from the third level routing module into the second level one, the bundles are created, and the app works. The routes are then matched properly from the third level, so its strictly a bundling issue. Whatever analysis is being done to figure out what lazy loaded bundles need to be built isn't following the trail far enough. (I thought I saw an issue related to a recent change in how the cli determines what bundles need to be built a week or two ago, but couldn't find it now. That was before the problem manifested itself though, so unless it was against the unreleased version it wasn't a problem for me until now)\r\n\r\n\r\n\r\n### The log given by the failure.\r\nI see very few bundles produced by ng serve and the when attempting to route I get:\r\n\r\nEXCEPTION: Uncaught (in promise): Error: Cannot find module 'FULL_PATH/MY_MODULE.module'.\r\nError: Cannot find module 'FULL_PATH/MY_MODULE.module'.\r\n at webpackAsyncContext (http://localhost:4200/main.bundle.js:628:25) [angular]\r\n at SystemJsNgModuleLoader.loadAndCompile (http://localhost:4200/vendor.bundle.js:86862:40) [angular]\r\n at SystemJsNgModuleLoader.load (http://localhost:4200/vendor.bundle.js:86850:60) [angular]\r\n at RouterConfigLoader.loadModuleFactory (http://localhost:4200/vendor.bundle.js:25223:128) [angular]\r\n at RouterConfigLoader.load (http://localhost:4200/vendor.bundle.js:25210:81) [angular]\r\n at MergeMapSubscriber.project (http://localhost:4200/vendor.bundle.js:91107:111) [angular]\r\n at MergeMapSubscriber._tryNext (http://localhost:4200/vendor.bundle.js:17084:27) [angular]\r\n at MergeMapSubscriber._next (http://localhost:4200/vendor.bundle.js:17074:18) [angular]\r\n at MergeMapSubscriber.Subscriber.next (http://localhost:4200/vendor.bundle.js:5016:18) [angular]\r\n at ScalarObservable._subscribe (http://localhost:4200/vendor.bundle.js:74230:24) [angular]\r\n at ScalarObservable.Observable.subscribe (http://localhost:4200/vendor.bundle.js:748:27) [angular]\r\n at MergeMapOperator.call (http://localhost:4200/vendor.bundle.js:17049:23) [angular]\r\n at Observable.subscribe (http://localhost:4200/vendor.bundle.js:745:22) [angular]\r\n at MergeMapOperator.call (http://localhost:4200/vendor.bundle.js:17049:23) [angular]\r\n\r\n\r\n### Mention any other details that might be useful.\r\n\r\n> ---------------------------------------------------------------\r\n> Thanks! We'll be in touch soon.\r\n","author":{"url":"https://github.com/slubowsky","@type":"Person","name":"slubowsky"},"datePublished":"2016-12-21T04:57:21Z","url":"https://github.com/angular/angular-cli/issues/3663"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:45e4db50-bf9f-63dd-e46d-75091d79faf8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDC0:34CAB:162A7C6:1C4D1B3:6B013A4F |
| html-safe-nonce | 2c1a85420a8e595b69946d7f10556dafaff9f546fe38d266e90e10115fbcdd6a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREMwOjM0Q0FCOjE2MkE3QzY6MUM0RDFCMzo2QjAxM0E0RiIsInZpc2l0b3JfaWQiOiIzNDYzMDIzNzc0NTUzNjg0NTYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9ae2d4a415b0e7f1d41fe2a10cc65a0fbe045d401a9b2049e8371af1a4d1121a |
| hovercard-subject-tag | issue:196846244 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/3663/issue_layout |
| twitter:image | https://opengraph.githubassets.com/41cb926024e11ff602d022f4661c30f7f60213769181ffd0d86665bfc3b831eb/angular/angular-cli/issues/3663 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/41cb926024e11ff602d022f4661c30f7f60213769181ffd0d86665bfc3b831eb/angular/angular-cli/issues/3663 |
| og:image:alt | Please provide us with the following information: OS? Windows 10 Versions. angular-cli: 1.0.0-beta.24 node: 7.2.1 os: win32 x64 @angular/common: 2.3.1 @angular/compiler: 2.3.1 @angular/core: 2.3.1 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | slubowsky |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width