{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/10618","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/10618/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/10618/comments","events_url":"https://api.github.com/repos/angular/angular/issues/10618/events","html_url":"https://github.com/angular/angular/issues/10618","id":170301507,"number":10618,"title":"[RC5]: Minified bundle breaks","user":{"login":"antonybudianto","id":7658554,"avatar_url":"https://avatars.githubusercontent.com/u/7658554?v=3","gravatar_id":"","url":"https://api.github.com/users/antonybudianto","html_url":"https://github.com/antonybudianto","followers_url":"https://api.github.com/users/antonybudianto/followers","following_url":"https://api.github.com/users/antonybudianto/following{/other_user}","gists_url":"https://api.github.com/users/antonybudianto/gists{/gist_id}","starred_url":"https://api.github.com/users/antonybudianto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonybudianto/subscriptions","organizations_url":"https://api.github.com/users/antonybudianto/orgs","repos_url":"https://api.github.com/users/antonybudianto/repos","events_url":"https://api.github.com/users/antonybudianto/events{/privacy}","received_events_url":"https://api.github.com/users/antonybudianto/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"assignees":[{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/60","html_url":"https://github.com/angular/angular/milestones/2.0.1","labels_url":"https://api.github.com/repos/angular/angular/milestones/60/labels","id":1820474,"number":60,"title":"2.0.1","description":"","creator":{"login":"vicb","id":248818,"avatar_url":"https://avatars.githubusercontent.com/u/248818?v=3","gravatar_id":"","url":"https://api.github.com/users/vicb","html_url":"https://github.com/vicb","followers_url":"https://api.github.com/users/vicb/followers","following_url":"https://api.github.com/users/vicb/following{/other_user}","gists_url":"https://api.github.com/users/vicb/gists{/gist_id}","starred_url":"https://api.github.com/users/vicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicb/subscriptions","organizations_url":"https://api.github.com/users/vicb/orgs","repos_url":"https://api.github.com/users/vicb/repos","events_url":"https://api.github.com/users/vicb/events{/privacy}","received_events_url":"https://api.github.com/users/vicb/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":6,"state":"open","created_at":"2016-06-10T16:19:38Z","updated_at":"2016-09-23T20:37:04Z","due_on":null,"closed_at":null},"comments":98,"created_at":"2016-08-10T00:21:19Z","updated_at":"2016-09-29T16:54:38Z","closed_at":"2016-08-30T18:21:40Z","body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\n**Minified** bundle breaks, but **SOLVED temporarily** by either:\r\n- turning `mangle` off (change the option [here](https://github.com/antonybudianto/angular2-starter/blob/update-rc5/config/gulp/config.js#L54))\r\n- re-order your components/pipes/directives declarations in NgModule\r\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 )\r\n\r\nError traces:\r\n```\r\nlib-2cf12bf509.js:7 Unhandled Promise rejection: Template parse errors:\r\nCan't bind to 'brand' since it isn't a known property of 'as-navbar'.\r\n1. If 'as-navbar' is an Angular component and it has 'brand' input, then verify that it is part of this module.\r\n2. If 'as-navbar' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schema' of this component to suppress this message.\r\n (\"<as-navbar [ERROR ->][brand]=\"appBrand\"></as-navbar>\r\n<div class=\"container\" style=\"margin-top: 100px;\">\r\n\t<router-outlet></\"): a@0:11 ; Zone: <root> ; Task: Promise.then ; Value:\r\n```\r\n\r\n\r\n**Expected/desired behavior**\r\nThe minified bundle should work as in RC4\r\n\r\n\r\n**Reproduction of the problem**\r\nhttps://github.com/OasisDigital/rc5-declaration-order\r\n\r\n```bash\r\nnpm install\r\n\r\n// try run in dev, it works well now\r\nnpm start\r\n\r\n// try run in prod, the bundle created but break\r\nnpm run serve-build\r\n\r\n// now try changing the mangle option and retry, it works!\r\n```\r\n\r\n\r\n**What is the expected behavior?**\r\nShould work as in RC4\r\n\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\n\r\n\r\n\r\n**Please tell us about your environment:**\r\n\r\n* **Angular version:** 2.0.0-rc.5\r\n \r\n* **Browser:** [all | Chrome 52 | Web Browser \r\n \r\n* **Language:** [all | TypeScript 1.8.10] \r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/250526151","html_url":"https://github.com/angular/angular/issues/10618#issuecomment-250526151","issue_url":"https://api.github.com/repos/angular/angular/issues/10618","id":250526151,"user":{"login":"mchamo","id":15604412,"avatar_url":"https://avatars.githubusercontent.com/u/15604412?v=3","gravatar_id":"","url":"https://api.github.com/users/mchamo","html_url":"https://github.com/mchamo","followers_url":"https://api.github.com/users/mchamo/followers","following_url":"https://api.github.com/users/mchamo/following{/other_user}","gists_url":"https://api.github.com/users/mchamo/gists{/gist_id}","starred_url":"https://api.github.com/users/mchamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mchamo/subscriptions","organizations_url":"https://api.github.com/users/mchamo/orgs","repos_url":"https://api.github.com/users/mchamo/repos","events_url":"https://api.github.com/users/mchamo/events{/privacy}","received_events_url":"https://api.github.com/users/mchamo/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T16:54:38Z","updated_at":"2016-09-29T16:54:38Z","body":"@princemaple thanks for the suggestion, still getting the original error message (see below) when running after building for prod mode.  Building in dev mode, works fine.\r\n\r\nzone.js?fad3:355Unhandled Promise rejection: Template parse errors:\r\nCan't bind to 'appname' since it isn't a known property of 'app-nav'.\r\n1. If 'app-nav' is an Angular component and it has 'appname' input, then verify that it is part of this module.\r\n2. If 'app-nav' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schema' of this component to suppress this message."}}
{"actor":{"display_login":"mchamo"}}