René's URL Explorer Experiment


Title: V8.0.0 : loadChildren library module failed : "Error: Runtime compiler is not loaded" on AOT mode · Issue #14763 · angular/angular-cli · GitHub

Open Graph Title: V8.0.0 : loadChildren library module failed : "Error: Runtime compiler is not loaded" on AOT mode · Issue #14763 · angular/angular-cli

X Title: V8.0.0 : loadChildren library module failed : "Error: Runtime compiler is not loaded" on AOT mode · Issue #14763 · angular/angular-cli

Description: 🐞 bug report Affected Package The issue is caused by package @angular/compiler and/or @angular/core and/or @angular/router Is this a regression? Yes, the previous version in which this bug was not present was: 7.2.1 Description I try to ...

Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/compiler and/or @angular/core and/or @angular/router Is this a regression? Yes, the previous version in which this bug was not ...

X Description: 🐞 bug report Affected Package The issue is caused by package @angular/compiler and/or @angular/core and/or @angular/router Is this a regression? Yes, the previous version in which this bug was not ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"V8.0.0 : loadChildren library module failed : \"Error: Runtime compiler is not loaded\" on AOT mode","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\nThe issue is caused by package @angular/compiler and/or @angular/core and/or @angular/router\r\n\r\n### Is this a regression?\r\nYes, the previous version in which this bug was not present was: 7.2.1\r\n\r\n### Description\r\nI try to load a project library (named shell) as a route \"loadChildren\", with 2 différents option : \r\n- loadChildren: () => import('shell').then(m => m.ProfileModule)\r\n- loadChildren: () => ProfileModule\r\n\r\nThis 2 ways work correctly on dev mode, but failed on AOT builded mode with an error message. And the route is not loaded.\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\n### ProfileModule (as an angular library named \"shell\" on the CLI project) : \r\n``` javascript\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { FlexLayoutModule } from '@angular/flex-layout';\r\n\r\nimport { ProfileComponent } from './profile/profile.component';\r\nimport { TranslateModule } from '../translate/translate.module';\r\nimport { GhostModule } from '../ghost/ghost.module';\r\nimport { DataModule } from '../data/data.module';\r\nimport { ProfileRoutingModule } from './profile-routing.module';\r\nimport { ProfileCardComponent } from './profile-card/profile-card.component';\r\n\r\n@NgModule({\r\n  declarations: [\r\n    ProfileComponent,\r\n    ProfileCardComponent\r\n  ],\r\n  imports: [\r\n    CommonModule,\r\n    MatCardModule,\r\n    MatListModule,\r\n    MatButtonModule,\r\n    MatIconModule,\r\n    TranslateModule,\r\n    FlexLayoutModule,\r\n    GhostModule,\r\n    DataModule,\r\n    ProfileRoutingModule\r\n  ],\r\n  exports: [\r\n    ProfileCardComponent\r\n  ]\r\n})\r\nexport class ProfileModule { }\r\n\r\n```\r\n\r\n### AppRoutingModule (as an angular project from the same CLI project)\r\n``` javascript\r\nimport { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\n\r\nimport { SecureGuard } from 'shell';\r\n\r\nimport { HomeComponent } from './home/home.component';\r\n\r\nexport function loadProfile() {\r\n  return import('shell').then(m => m.ProfileModule);\r\n}\r\n\r\nconst routes: Routes = [{\r\n  path: '',\r\n  canActivate: [SecureGuard],\r\n  children: [{\r\n    path: '',\r\n    component: HomeComponent\r\n  }, {\r\n    path: 'profile',\r\n    loadChildren: loadProfile // Here the error at runtime, the error message appear when I go to /profile\r\n  }, {\r\n    path: '**',\r\n    component: HomeComponent\r\n  }]\r\n}];\r\n\r\n@NgModule({\r\n  imports: [RouterModule.forRoot(routes)],\r\n  exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule { }\r\n\r\n```\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\nUncaught Error: Uncaught (in promise): Error: Runtime compiler is not loaded\r\nError: Runtime compiler is not loaded\r\n    at e.Jr (main.41ff3398f5c3f189c836.js:1)\r\n    at t.project (main.41ff3398f5c3f189c836.js:1)\r\n    at t._tryNext (main.41ff3398f5c3f189c836.js:1)\r\n    at t._next (main.41ff3398f5c3f189c836.js:1)\r\n    at t.next (main.41ff3398f5c3f189c836.js:1)\r\n    at e._subscribe (main.41ff3398f5c3f189c836.js:1)\r\n    at e._trySubscribe (main.41ff3398f5c3f189c836.js:1)\r\n    at e.subscribe (main.41ff3398f5c3f189c836.js:1)\r\n    at e.call (main.41ff3398f5c3f189c836.js:1)\r\n    at e.subscribe (main.41ff3398f5c3f189c836.js:1)\r\n    at Z (polyfills.06b93379260cc1d8e708.js:1)\r\n    at Z (polyfills.06b93379260cc1d8e708.js:1)\r\n    at polyfills.06b93379260cc1d8e708.js:1\r\n    at e.invokeTask (polyfills.06b93379260cc1d8e708.js:1)\r\n    at Object.onInvokeTask (main.41ff3398f5c3f189c836.js:1)\r\n    at e.invokeTask (polyfills.06b93379260cc1d8e708.js:1)\r\n    at t.runTask (polyfills.06b93379260cc1d8e708.js:1)\r\n    at g (polyfills.06b93379260cc1d8e708.js:1)\r\n    at t.invokeTask [as invoke] (polyfills.06b93379260cc1d8e708.js:1)\r\n    at m (polyfills.06b93379260cc1d8e708.js:1)\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🌍  Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 8.0.1\r\nNode: 12.4.0\r\nOS: darwin x64\r\nAngular: 8.0.0\r\n... animations, cdk, common, compiler, compiler-cli, core, forms\r\n... language-service, material, material-moment-adapter\r\n... platform-browser, platform-browser-dynamic, router\r\n... service-worker\r\n\r\nPackage                            Version\r\n------------------------------------------------------------\r\n@angular-devkit/architect          0.800.1\r\n@angular-devkit/build-angular      0.800.1\r\n@angular-devkit/build-ng-packagr   0.800.1\r\n@angular-devkit/build-optimizer    0.800.1\r\n@angular-devkit/build-webpack      0.800.1\r\n@angular-devkit/core               8.0.1\r\n@angular-devkit/schematics         8.0.1\r\n@angular/cli                       8.0.1\r\n@angular/flex-layout               8.0.0-beta.26\r\n@angular/pwa                       0.800.1\r\n@ngtools/json-schema               1.1.0\r\n@ngtools/webpack                   8.0.1\r\n@schematics/angular                8.0.1\r\n@schematics/update                 0.800.1\r\nng-packagr                         5.2.0\r\nrxjs                               6.5.2\r\ntypescript                         3.4.5\r\nwebpack                            4.30.0\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\nI try to use on different CLI projects a Profile module from a CLI library (all on the same CLI project). This is not possible since angular 8.0.0\r\n","author":{"url":"https://github.com/robinComa","@type":"Person","name":"robinComa"},"datePublished":"2019-06-07T08:02:12Z","url":"https://github.com/angular/angular-cli/issues/14763"}

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:745e7e24-b740-e315-a560-7b274a116091
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE51C:1F7384:1682AA8:1DBC887:6B013373
html-safe-noncedf1f68c6372f3900707f03f02a58e997fc2c61de61f0a8b0b2a063fc368f75da
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTFDOjFGNzM4NDoxNjgyQUE4OjFEQkM4ODc6NkIwMTMzNzMiLCJ2aXNpdG9yX2lkIjoiMTk1NjgxODI0MDM2NTczNjgxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5036e77ca17bed36227c5c05a90c2b3f1213b5946c0992c3665cb365701bd380
hovercard-subject-tagissue:455834486
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/14763/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8d8d5b9f51cc267d126b495d8e4aabeb37f10002c5cd0b98ff6300594eb589ad/angular/angular-cli/issues/14763
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8d8d5b9f51cc267d126b495d8e4aabeb37f10002c5cd0b98ff6300594eb589ad/angular/angular-cli/issues/14763
og:image:alt🐞 bug report Affected Package The issue is caused by package @angular/compiler and/or @angular/core and/or @angular/router Is this a regression? Yes, the previous version in which this bug was not ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerobinComa
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-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/14763#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F14763
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%2F14763
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/14763
Reloadhttps://github.com/angular/angular-cli/issues/14763
Reloadhttps://github.com/angular/angular-cli/issues/14763
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/14763
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/14763
V8.0.0 : loadChildren library module failed : "Error: Runtime compiler is not loaded" on AOT modehttps://github.com/angular/angular-cli/issues/14763#top
https://github.com/robinComa
robinComahttps://github.com/robinComa
on Jun 7, 2019https://github.com/angular/angular-cli/issues/14763#issue-455834486
https://github.com/trotyl
trotylhttps://github.com/trotyl
on Jun 7, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-499809213
herehttps://github.com/angular/angular-cli/blob/a491b09800b493fe01301387fa9a025f7c7d4808/packages/ngtools/webpack/src/transformers/import_factory.ts#L104-L113
https://angular.io/guide/deprecations#loadchildren-string-syntaxhttps://angular.io/guide/deprecations#loadchildren-string-syntax
Angular CLIhttps://github.com/angular/angular-cli
https://github.com/robinComa
robinComahttps://github.com/robinComa
on Jun 7, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-499825636
@trotylhttps://github.com/trotyl
https://github.com/trotyl
trotylhttps://github.com/trotyl
on Jun 7, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-499839602
https://github.com/robinComa
robinComahttps://github.com/robinComa
on Jun 7, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-499843763
@trotylhttps://github.com/trotyl
https://github.com/robinComa
robinComahttps://github.com/robinComa
on Jun 7, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-499844518
#14700https://github.com/angular/angular-cli/issues/14700
https://github.com/trotyl
trotylhttps://github.com/trotyl
on Jun 7, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-499845163
https://github.com/robinComa
robinComahttps://github.com/robinComa
on Jun 7, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-499858346
@trotylhttps://github.com/trotyl
https://github.com/trotyl
trotylhttps://github.com/trotyl
on Jun 7, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-499863670
https://github.com/robinComa
robinComahttps://github.com/robinComa
on Jun 7, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-499865359
@trotylhttps://github.com/trotyl
@alan-agius4https://github.com/alan-agius4
@alan-agius4https://github.com/alan-agius4
@alan-agius4https://github.com/alan-agius4
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Jun 11, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-500810738
https://github.com/robinComa
robinComahttps://github.com/robinComa
on Jun 13, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-501646164
@alan-agius4https://github.com/alan-agius4
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Jun 13, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-501773683
alan-agius4https://github.com/alan-agius4
angular/angularhttps://github.com/angular/angular
on Jun 13, 2019https://github.com/angular/angular-cli/issues/14763#event-2411181675
https://github.com/robinComa
robinComahttps://github.com/robinComa
on Jun 13, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-501792358
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Jun 13, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-501811790
@robinComahttps://github.com/robinComa
https://angular.io/guide/lazy-loading-ngmoduleshttps://angular.io/guide/lazy-loading-ngmodules
https://github.com/robinComa
robinComahttps://github.com/robinComa
on Jun 13, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-501846043
robinComahttps://github.com/robinComa
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 13, 2019https://github.com/angular/angular-cli/issues/14763#event-2411680139
https://github.com/CSchulz
CSchulzhttps://github.com/CSchulz
on Jul 29, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-515957197
@alan-agius4https://github.com/alan-agius4
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Jul 29, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-515969237
@CSchulzhttps://github.com/CSchulz
#6373 (comment)https://github.com/angular/angular-cli/issues/6373#issuecomment-453006158
https://github.com/CSchulz
CSchulzhttps://github.com/CSchulz
on Jul 29, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-515972672
@alan-agius4https://github.com/alan-agius4
https://github.com/82antu
82antuhttps://github.com/82antu
on Sep 8, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-529192412
https://github.com/akvaliya
akvaliyahttps://github.com/akvaliya
on Sep 20, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-533544035
https://github.com/BerBevans
BerBevanshttps://github.com/BerBevans
on Oct 4, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-538373316
herehttps://stackoverflow.com/questions/56473148/runtime-compiler-is-not-loaded-with-angular-8-and-lazy-module
https://github.com/phetw
phetwhttps://github.com/phetw
on Oct 9, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-539804104
@BerBevanshttps://github.com/BerBevans
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 9, 2019https://github.com/angular/angular-cli/issues/14763#issuecomment-552076982
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
on Nov 9, 2019https://github.com/angular/angular-cli/issues/14763#event-2785151426
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/14763
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/14763
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.