Title: AOT broken when using loadChildren and a function : Replace modules import by modules factories ? · Issue #4192 · angular/angular-cli · GitHub
Open Graph Title: AOT broken when using loadChildren and a function : Replace modules import by modules factories ? · Issue #4192 · angular/angular-cli
X Title: AOT broken when using loadChildren and a function : Replace modules import by modules factories ? · Issue #4192 · angular/angular-cli
Description: When I try to build my app with AOT since I'm using loadChildren with a function it breaks (not at compilation but when running the app in the browser, complaining that r.create is not a function). According to angular/angular#13909 it s...
Open Graph Description: When I try to build my app with AOT since I'm using loadChildren with a function it breaks (not at compilation but when running the app in the browser, complaining that r.create is not a function)....
X Description: When I try to build my app with AOT since I'm using loadChildren with a function it breaks (not at compilation but when running the app in the browser, complaining that r.create is not a functi...
Opengraph URL: https://github.com/angular/angular-cli/issues/4192
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AOT broken when using loadChildren and a function : Replace modules import by modules factories ?","articleBody":"When I try to build my app with AOT since I'm using `loadChildren` with a function it breaks (not at compilation but when running the app in the browser, complaining that r.create is not a function).\r\n\r\nAccording to https://github.com/angular/angular/pull/13909 it seems that instead of having \r\n\r\n\r\n\r\nwe should rather import the factory (which is not available when coding, only when building) :\r\n\r\n\r\n\r\n_SamVerschueren_ asked if it could be replaced at build time (and opened an issue https://github.com/angular/angular/issues/14005 for that).\r\n\r\n_mhevery_ explained why it can't be handled at build time by angular https://github.com/angular/angular/pull/13909#issuecomment-274650555.\r\n\r\nI'm wondering if this can be done by **angular-cli** ? Or as soon as we use `loadChildren` with a function (don't want AOT or AOT is broken due to some other bugs for example) we have to manually do that ?\r\n\r\n","author":{"url":"https://github.com/maxime1992","@type":"Person","name":"maxime1992"},"datePublished":"2017-01-24T07:13:55Z","url":"https://github.com/angular/angular-cli/issues/4192"}
| 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:5a276435-e156-b710-ded8-fe1d2c87b14e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6D8:2270F4:14F067C:1BD16EF:6B013030 |
| html-safe-nonce | e6f7063ca5b47b6943d08b398cc0ff7a8a6a00eb386b09529430bf8bb4f921e2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkQ4OjIyNzBGNDoxNEYwNjdDOjFCRDE2RUY6NkIwMTMwMzAiLCJ2aXNpdG9yX2lkIjoiMTYxMTQxNDkwODgzNzExMzkwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6d0d52944455485b5e3e7f9fd0dd971bdc994188bc37e62b7b4f00d0b340e8a3 |
| hovercard-subject-tag | issue:202742062 |
| 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/4192/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fccba4ad552ae2790f1af5aeef98e9e3dc7140eb29852c0be7667c972d5501b3/angular/angular-cli/issues/4192 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fccba4ad552ae2790f1af5aeef98e9e3dc7140eb29852c0be7667c972d5501b3/angular/angular-cli/issues/4192 |
| og:image:alt | When I try to build my app with AOT since I'm using loadChildren with a function it breaks (not at compilation but when running the app in the browser, complaining that r.create is not a function).... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxime1992 |
| 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