René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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![image](https://cloud.githubusercontent.com/assets/4950209/22237426/0720389c-e20c-11e6-82d1-fde7fdd9fa2a.png)\r\n\r\nwe should rather import the factory (which is not available when coding, only when building) :\r\n\r\n![image](https://cloud.githubusercontent.com/assets/4950209/22237446/26000af8-e20c-11e6-8784-b95fff57a6e6.png)\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-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:5a276435-e156-b710-ded8-fe1d2c87b14e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD6D8:2270F4:14F067C:1BD16EF:6B013030
html-safe-noncee6f7063ca5b47b6943d08b398cc0ff7a8a6a00eb386b09529430bf8bb4f921e2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkQ4OjIyNzBGNDoxNEYwNjdDOjFCRDE2RUY6NkIwMTMwMzAiLCJ2aXNpdG9yX2lkIjoiMTYxMTQxNDkwODgzNzExMzkwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6d0d52944455485b5e3e7f9fd0dd971bdc994188bc37e62b7b4f00d0b340e8a3
hovercard-subject-tagissue:202742062
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/4192/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fccba4ad552ae2790f1af5aeef98e9e3dc7140eb29852c0be7667c972d5501b3/angular/angular-cli/issues/4192
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fccba4ad552ae2790f1af5aeef98e9e3dc7140eb29852c0be7667c972d5501b3/angular/angular-cli/issues/4192
og:image:altWhen 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemaxime1992
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/4192#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F4192
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%2F4192
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/4192
Reloadhttps://github.com/angular/angular-cli/issues/4192
Reloadhttps://github.com/angular/angular-cli/issues/4192
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/4192
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/4192
AOT broken when using loadChildren and a function : Replace modules import by modules factories ?https://github.com/angular/angular-cli/issues/4192#top
type: RFC / discussion / questionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20RFC%20%2F%20discussion%20%2F%20question%22
https://github.com/maxime1992
maxime1992https://github.com/maxime1992
on Jan 24, 2017https://github.com/angular/angular-cli/issues/4192#issue-202742062
angular/angular#13909https://github.com/angular/angular/pull/13909
https://cloud.githubusercontent.com/assets/4950209/22237426/0720389c-e20c-11e6-82d1-fde7fdd9fa2a.png
https://cloud.githubusercontent.com/assets/4950209/22237446/26000af8-e20c-11e6-8784-b95fff57a6e6.png
angular/angular#14005https://github.com/angular/angular/issues/14005
angular/angular#13909 (comment)https://github.com/angular/angular/pull/13909#issuecomment-274650555
Nexthttps://github.com/angular/angular-cli/issues/4192?timeline_page=1
https://github.com/Meligy
Meligyhttps://github.com/Meligy
on Jan 24, 2017https://github.com/angular/angular-cli/issues/4192#issuecomment-274775116
https://github.com/meligy/routing-angular-clihttps://github.com/meligy/routing-angular-cli
https://github.com/Meligy/routing-angular-cli/blob/deep-lazy-loading/src/app/app-routing.module.ts#L18https://github.com/Meligy/routing-angular-cli/blob/deep-lazy-loading/src/app/app-routing.module.ts#L18
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Jan 24, 2017https://github.com/angular/angular-cli/issues/4192#issuecomment-274776668
@hanslhttps://github.com/hansl
filipesilvahttps://github.com/filipesilva
hanslhttps://github.com/hansl
on Jan 24, 2017https://github.com/angular/angular-cli/issues/4192#event-934324037
filipesilvahttps://github.com/filipesilva
type: RFC / discussion / questionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20RFC%20%2F%20discussion%20%2F%20question%22
on Jan 24, 2017https://github.com/angular/angular-cli/issues/4192#event-934324132
https://github.com/maxime1992
maxime1992https://github.com/maxime1992
on Jan 24, 2017https://github.com/angular/angular-cli/issues/4192#issuecomment-274793338
@Meligyhttps://github.com/Meligy
https://github.com/noamichael
noamichaelhttps://github.com/noamichael
on Jan 25, 2017https://github.com/angular/angular-cli/issues/4192#issuecomment-275168155
#11075https://github.com/angular/angular-cli/issues/11075
https://github.com/Meligy
Meligyhttps://github.com/Meligy
on Jan 26, 2017https://github.com/angular/angular-cli/issues/4192#issuecomment-275496849
@noamichaelhttps://github.com/noamichael
kucharzykhttps://github.com/kucharzyk
on Feb 5, 2017https://github.com/angular/angular-cli/issues/4192#event-949466544
fix(frontend): temporary use lazy loaded routes with aot (fixes #1)https://github.com/kucharzyk/spring-kotlin-angular4/commit/a24eed8ba8b74fb42cf46994388f148d825026a6
#1https://github.com/kucharzyk/spring-kotlin-angular4/issues/1
a24eed8https://github.com/kucharzyk/spring-kotlin-angular4/commit/a24eed8ba8b74fb42cf46994388f148d825026a6
https://github.com/borislemke
borislemkehttps://github.com/borislemke
on Feb 24, 2017https://github.com/angular/angular-cli/issues/4192#issuecomment-282194701
@Meligyhttps://github.com/Meligy
https://github.com/SamVerschueren
SamVerschuerenhttps://github.com/SamVerschueren
on Feb 24, 2017https://github.com/angular/angular-cli/issues/4192#issuecomment-282231974
@borislemkehttps://github.com/borislemke
https://github.com/borislemke
borislemkehttps://github.com/borislemke
on Feb 24, 2017https://github.com/angular/angular-cli/issues/4192#issuecomment-282241907
@SamVerschuerenhttps://github.com/SamVerschueren
https://github.com/SamVerschueren
SamVerschuerenhttps://github.com/SamVerschueren
on Feb 24, 2017https://github.com/angular/angular-cli/issues/4192#issuecomment-282242658
https://github.com/steve3d
steve3dhttps://github.com/steve3d
on Mar 10, 2017https://github.com/angular/angular-cli/issues/4192#issuecomment-285561451
https://github.com/SamVerschueren
SamVerschuerenhttps://github.com/SamVerschueren
on Mar 10, 2017https://github.com/angular/angular-cli/issues/4192#issuecomment-285584134
@Meligyhttps://github.com/Meligy
https://github.com/maxime1992
maxime1992https://github.com/maxime1992
on Mar 10, 2017https://github.com/angular/angular-cli/issues/4192#issuecomment-285602409
@steve3dhttps://github.com/steve3d
https://github.com/barisbikmaz
barisbikmazhttps://github.com/barisbikmaz
on Mar 14, 2018https://github.com/angular/angular-cli/issues/4192#issuecomment-372972153
https://github.com/r0zar
r0zarhttps://github.com/r0zar
on Mar 18, 2018https://github.com/angular/angular-cli/issues/4192#issuecomment-373966982
joschnehttps://github.com/joschne
on May 18, 2018https://github.com/angular/angular-cli/issues/4192#event-1633736719
fixed AOT-error with not lazy loaded moduleshttps://github.com/geovistory/toolbox/commit/876e6cee98d8957467d97dabf4ea6dfc31bdd8b4
876e6cehttps://github.com/geovistory/toolbox/commit/876e6cee98d8957467d97dabf4ea6dfc31bdd8b4
https://github.com/aburht
aburhthttps://github.com/aburht
on Aug 14, 2018https://github.com/angular/angular-cli/issues/4192#issuecomment-413010805
@filipesilvahttps://github.com/filipesilva
https://github.com/wctiger
wctigerhttps://github.com/wctiger
on Sep 6, 2018https://github.com/angular/angular-cli/issues/4192#issuecomment-419240940
https://github.com/unspike
unspikehttps://github.com/unspike
on Jan 20, 2019https://github.com/angular/angular-cli/issues/4192#issuecomment-455853405
https://github.com/romko391
romko391https://github.com/romko391
on Feb 28, 2019https://github.com/angular/angular-cli/issues/4192#issuecomment-468255051
https://github.com/C0ZEN
C0ZENhttps://github.com/C0ZEN
on Jun 4, 2019https://github.com/angular/angular-cli/issues/4192#issuecomment-498679806
https://github.com/chriszrc
chriszrchttps://github.com/chriszrc
on Jun 26, 2019https://github.com/angular/angular-cli/issues/4192#issuecomment-505928729
@C0ZENhttps://github.com/C0ZEN
https://blog.angularindepth.com/automatically-upgrade-lazy-loaded-angular-modules-for-ivy-e760872e6084https://blog.angularindepth.com/automatically-upgrade-lazy-loaded-angular-modules-for-ivy-e760872e6084
https://github.com/devbenzy
devbenzyhttps://github.com/devbenzy
on Jun 27, 2019https://github.com/angular/angular-cli/issues/4192#issuecomment-506195306
@C0ZENhttps://github.com/C0ZEN
https://blog.angularindepth.com/automatically-upgrade-lazy-loaded-angular-modules-for-ivy-e760872e6084https://blog.angularindepth.com/automatically-upgrade-lazy-loaded-angular-modules-for-ivy-e760872e6084
https://github.com/chriszrc
chriszrchttps://github.com/chriszrc
on Jul 2, 2019https://github.com/angular/angular-cli/issues/4192#issuecomment-507755672
@devbenzyhttps://github.com/devbenzy
#14763 (comment)https://github.com/angular/angular-cli/issues/14763#issuecomment-499809213
https://github.com/C0ZEN
C0ZENhttps://github.com/C0ZEN
on Jul 2, 2019https://github.com/angular/angular-cli/issues/4192#issuecomment-507765180
@chriszrchttps://github.com/chriszrc
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 9, 2019https://github.com/angular/angular-cli/issues/4192#issuecomment-529565471
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
hanslhttps://github.com/hansl
on Sep 9, 2019https://github.com/angular/angular-cli/issues/4192#event-2619395054
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 9, 2019https://github.com/angular/angular-cli/issues/4192#event-2619395081
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/4192
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/4192
type: RFC / discussion / questionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20RFC%20%2F%20discussion%20%2F%20question%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.