Title: AOT build produces applications unable to lazy load modules · Issue #2452 · angular/angular-cli · GitHub
Open Graph Title: AOT build produces applications unable to lazy load modules · Issue #2452 · angular/angular-cli
X Title: AOT build produces applications unable to lazy load modules · Issue #2452 · angular/angular-cli
Description: angular-cli: 1.0.0-beta.16 node: 6.0.0 os: linux x64 reproduction repo can be found here The log given by the failure. main.cfeed71….bundle.js:547 EXCEPTION: Uncaught (in promise): Error: Cannot find module 'app/lazy/lazy.module.ngfactor...
Open Graph Description: angular-cli: 1.0.0-beta.16 node: 6.0.0 os: linux x64 reproduction repo can be found here The log given by the failure. main.cfeed71….bundle.js:547 EXCEPTION: Uncaught (in promise): Error: Cannot fi...
X Description: angular-cli: 1.0.0-beta.16 node: 6.0.0 os: linux x64 reproduction repo can be found here The log given by the failure. main.cfeed71….bundle.js:547 EXCEPTION: Uncaught (in promise): Error: Cannot fi...
Opengraph URL: https://github.com/angular/angular-cli/issues/2452
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AOT build produces applications unable to lazy load modules","articleBody":"```\nangular-cli: 1.0.0-beta.16\nnode: 6.0.0\nos: linux x64\n```\n\nreproduction repo can be found [here](https://github.com/slmyers/test-lazy-aot)\n### The log given by the failure.\n\n```\nmain.cfeed71….bundle.js:547 EXCEPTION: Uncaught (in promise): Error: Cannot find module \n'app/lazy/lazy.module.ngfactory'.\n```\n\nIt seems that `aot` option can not build project that lazily loads modules. I would hope that one could use the patterns in the official documentation -- which I believe I'm doing -- and use the `-- aot` option to compile your app easily. I would appreciate any clarification as to whether this is an issue with the `CLI` or with the compiler. Thanks. \n","author":{"url":"https://github.com/slmyers","@type":"Person","name":"slmyers"},"datePublished":"2016-09-30T23:13:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":54},"url":"https://github.com/2452/angular-cli/issues/2452"}
| 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:0dd17574-de43-c671-07ce-08a4011d65d7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A94:3106E:90F1954:BC48DF0:697714EC |
| html-safe-nonce | 40667d9696d4ab77180efe70d2fdfe2c776548000b23c94e352670ff88755aa2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTk0OjMxMDZFOjkwRjE5NTQ6QkM0OERGMDo2OTc3MTRFQyIsInZpc2l0b3JfaWQiOiIzMDEyOTUzNDM0MzIwNDc1MzcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6b7e97396f0232122c2273dabf8232808a06532b04f7a212fe85bf654027a285 |
| hovercard-subject-tag | issue:180420564 |
| 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/2452/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e3cd70827020f3fe71c2e69e0b90b2ac50bac7fd2c5b21b95322726ec2d60ab5/angular/angular-cli/issues/2452 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e3cd70827020f3fe71c2e69e0b90b2ac50bac7fd2c5b21b95322726ec2d60ab5/angular/angular-cli/issues/2452 |
| og:image:alt | angular-cli: 1.0.0-beta.16 node: 6.0.0 os: linux x64 reproduction repo can be found here The log given by the failure. main.cfeed71….bundle.js:547 EXCEPTION: Uncaught (in promise): Error: Cannot fi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | slmyers |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| 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 | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width