Title: Multiple apps and shared components fails on --aot · Issue #8031 · angular/angular-cli · GitHub
Open Graph Title: Multiple apps and shared components fails on --aot · Issue #8031 · angular/angular-cli
X Title: Multiple apps and shared components fails on --aot · Issue #8031 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.4.6 node: 8.5.0 os: darwin x64 @angular/animations: 4.4.4 @angular/common: 4.4.4 @a...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.4.6 node: 8.5.0 os: darwin x64 @angular/ani...
X Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.4.6 node: 8.5.0 os: darwin x64 @angular/...
Opengraph URL: https://github.com/angular/angular-cli/issues/8031
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Multiple apps and shared components fails on --aot","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\n\u003c!--\r\nOutput from: `ng --version`.\r\nIf nothing, output from: `node --version` and `npm --version`.\r\n Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)\r\n-->\r\n@angular/cli: 1.4.6\r\nnode: 8.5.0\r\nos: darwin x64\r\n@angular/animations: 4.4.4\r\n@angular/common: 4.4.4\r\n@angular/compiler: 4.4.4\r\n@angular/core: 4.4.4\r\n@angular/forms: 4.4.4\r\n@angular/http: 4.4.4\r\n@angular/platform-browser: 4.4.4\r\n@angular/platform-browser-dynamic: 4.4.4\r\n@angular/router: 4.4.4\r\n@angular/cli: 1.4.6\r\n@angular/compiler-cli: 4.4.4\r\n@angular/language-service: 4.4.4\r\ntypescript: 2.3.4\r\n\r\n### Repro steps.\r\n\u003c!--\r\nSimple steps to reproduce this bug.\r\nPlease include: commands run, packages added, related code changes.\r\nA link to a sample repo would help too.\r\n-->\r\nCreate new application and add second application to apps array in angular-cli.json.\r\nAdd another main entry that shares components with default main.ts file.\r\nRunning ng build or serve with --aot flag produces build error.\r\n\r\n### The log given by the failure.\r\n\u003c!-- Normally this include a stack trace and some more information. -->\r\nERROR in Error: Type AppComponent in app.component.ts is part of the declarations of 2 modules\r\n\r\n### Desired functionality.\r\n\u003c!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n-->\r\nUsing different apps with shared components would resolve excluding mocks from production code and add additional features for each app.\r\n\r\n### Mention any other details that might be useful.\r\n\u003c!-- Please include a link to the repo if this is related to an OSS project. -->\r\nExample repo: [https://github.com/veke/ng-multiple-apps](https://github.com/veke/ng-multiple-apps)\r\nng build --aot","author":{"url":"https://github.com/veke","@type":"Person","name":"veke"},"datePublished":"2017-10-12T16:34:40Z","url":"https://github.com/angular/angular-cli/issues/8031"}
| 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:3c45f7aa-d43d-642c-48a9-3faddb89038f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E144:3A6E49:20304B5:2A8421F:6B057348 |
| html-safe-nonce | 285b90a74e3c57e41908dc1a42c36a055370b8f2e22604299f8969053b7158b5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTQ0OjNBNkU0OToyMDMwNEI1OjJBODQyMUY6NkIwNTczNDgiLCJ2aXNpdG9yX2lkIjoiMTc2OTMwMzU0NTkzMDQxMjg3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 88a3d87ebb4a5f87c126cdf2034d287910c7f2d73939647c843cb6e2958db38b |
| hovercard-subject-tag | issue:265007885 |
| 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/8031/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e495987eb297b39f110eae498adfdc73e303794b0adc7dddbba834c826bcf61/angular/angular-cli/issues/8031 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e495987eb297b39f110eae498adfdc73e303794b0adc7dddbba834c826bcf61/angular/angular-cli/issues/8031 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.4.6 node: 8.5.0 os: darwin x64 @angular/ani... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | veke |
| hostname | github.com |
| expected-hostname | github.com |
| None | 507b2d62524c0f595c35a2a2ee8a6ec54b119f245b3c59eaa070013b70ed1ada |
| 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 | e7a883ae3b439b8952652eaa7803e2587f30e339 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width