Title: [RC5]: Minified bundle breaks · Issue #10618 · angular/angular · GitHub
Open Graph Title: [RC5]: Minified bundle breaks · Issue #10618 · angular/angular
X Title: [RC5]: Minified bundle breaks · Issue #10618 · angular/angular
Description: I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question Current be...
Open Graph Description: I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/ma...
X Description: I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angula...
Opengraph URL: https://github.com/angular/angular/issues/10618
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[RC5]: Minified bundle breaks","articleBody":"**I'm submitting a ...** (check one with \"x\")\n\n```\n[x] bug report\n[ ] feature request\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\n```\n\n**Current behavior**\n**Minified** bundle breaks, but **SOLVED temporarily** by either:\n- turning `mangle` off (change the option [here](https://github.com/antonybudianto/angular2-starter/blob/update-rc5/config/gulp/config.js#L54))\n- re-order your components/pipes/directives declarations in NgModule\n- Use AOT compilation: [ngc, or a.k.a @angular/compiler-cli](https://github.com/angular/angular/tree/master/modules/%40angular/compiler-cli) (Update from @IgorMinar ) -> most recommended\n\nError traces:\n\n```\nlib-2cf12bf509.js:7 Unhandled Promise rejection: Template parse errors:\nCan't bind to 'brand' since it isn't a known property of 'as-navbar'.\n1. If 'as-navbar' is an Angular component and it has 'brand' input, then verify that it is part of this module.\n2. If 'as-navbar' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schema' of this component to suppress this message.\n (\"\u003cas-navbar [ERROR ->][brand]=\"appBrand\">\u003c/as-navbar>\n\u003cdiv class=\"container\" style=\"margin-top: 100px;\">\n \u003crouter-outlet>\u003c/\"): a@0:11 ; Zone: \u003croot> ; Task: Promise.then ; Value:\n```\n\n**Expected/desired behavior**\nThe minified bundle should work as in RC4\n\n**Reproduction of the problem**\nhttps://github.com/OasisDigital/rc5-declaration-order\n\n``` bash\nnpm install\n\n// try run in dev, it works well now\nnpm start\n\n// try run in prod, the bundle created but break\nnpm run serve-build\n\n// now try changing the mangle option and retry, it works!\n```\n\n**What is the expected behavior?**\nShould work as in RC4\n\n**What is the motivation / use case for changing the behavior?**\n\n**Please tell us about your environment:**\n- **Angular version:** 2.0.0-rc.5\n- **Browser:** [all | Chrome 52 | Web Browser \n- **Language:** [all | TypeScript 1.8.10] \n","author":{"url":"https://github.com/antonybudianto","@type":"Person","name":"antonybudianto"},"datePublished":"2016-08-10T00:21:19Z","url":"https://github.com/angular/angular/issues/10618"}
| 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:f2c98b50-b3fe-d0c8-6b2a-65157925b77a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A4BA:20AA01:16CFE39:1D0EF2D:6B012465 |
| html-safe-nonce | 0328476feccb0c51c5f66571de588c7540e6da4fadacaced2abdfb4bcda99d00 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEJBOjIwQUEwMToxNkNGRTM5OjFEMEVGMkQ6NkIwMTI0NjUiLCJ2aXNpdG9yX2lkIjoiNTA2NDgxNTExNTg3OTEzMDIxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 634f548ebe03b7f795e2766c80b0f3316133725a6f156a9100521a644dbefb0c |
| hovercard-subject-tag | issue:170301507 |
| 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/10618/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1bbe167254e80e3fb66a5bb76e175536e2eda6e704cbaa332af3751614b361f6/angular/angular/issues/10618 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1bbe167254e80e3fb66a5bb76e175536e2eda6e704cbaa332af3751614b361f6/angular/angular/issues/10618 |
| og:image:alt | I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/ma... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | antonybudianto |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| 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