{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/15322","repository_url":"https://api.github.com/repos/emberjs/ember.js","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/15322/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/15322/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/15322/events","html_url":"https://github.com/emberjs/ember.js/issues/15322","id":233249572,"number":15322,"title":"Defining a property on an Ember Component named \"container\" causes an exception in Production build of Ember","user":{"login":"hudakdidit","id":1223821,"avatar_url":"https://avatars3.githubusercontent.com/u/1223821?v=4","gravatar_id":"","url":"https://api.github.com/users/hudakdidit","html_url":"https://github.com/hudakdidit","followers_url":"https://api.github.com/users/hudakdidit/followers","following_url":"https://api.github.com/users/hudakdidit/following{/other_user}","gists_url":"https://api.github.com/users/hudakdidit/gists{/gist_id}","starred_url":"https://api.github.com/users/hudakdidit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hudakdidit/subscriptions","organizations_url":"https://api.github.com/users/hudakdidit/orgs","repos_url":"https://api.github.com/users/hudakdidit/repos","events_url":"https://api.github.com/users/hudakdidit/events{/privacy}","received_events_url":"https://api.github.com/users/hudakdidit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-02T17:30:09Z","updated_at":"2017-10-04T11:56:26Z","closed_at":null,"author_association":"NONE","body":"Hi All,\r\n\r\nI recently encountered an issue when upgrading from Ember 2.9.1 to 2.13.0. I didn't see anything the Ember guides or docs about this, but please correct me if I missed it. It seems when you add a \"container\" property to a component you get the following error - only when serving your app with the production build of Ember . If this is not documented I would be happy to contribute. It seems we could also handle the exception with a more informative message to track down the source of the bug. \r\n\r\nI was able to track down the source with the help of this SO post https://stackoverflow.com/questions/35155198/how-solve-this-using-the-injected-container-is-deprecated-ember-2-3.\r\n\r\nI've put together a demo repo with Ember 2.13 that reproduces the bug. https://github.com/hudakdidit/ember-container-property-production-bug\r\n\r\nTo reproduce you can run `ember build --environment production` and put the dist folder on a running server or run a local node server like `http-server`.\r\n\r\n```\r\nvendor-35d6ff4933cc1e156ce04e2c2d52162f.js:12 TypeError: Cannot read property '__container__' of undefined\r\n    at a.get (vendor-35d6ff4933cc1e156ce04e2c2d52162f.js:8)\r\n    at R (vendor-35d6ff4933cc1e156ce04e2c2d52162f.js:12)\r\n    at A (vendor-35d6ff4933cc1e156ce04e2c2d52162f.js:12)\r\n    at e.H.applyPartial (vendor-35d6ff4933cc1e156ce04e2c2d52162f.js:12)\r\n    at Function.a.proto (vendor-35d6ff4933cc1e156ce04e2c2d52162f.js:16)\r\n    at new a (vendor-35d6ff4933cc1e156ce04e2c2d52162f.js:15)\r\n    at Function.u.create (vendor-35d6ff4933cc1e156ce04e2c2d52162f.js:16)\r\n    at e.create (vendor-35d6ff4933cc1e156ce04e2c2d52162f.js:8)\r\n    at r.create (vendor-35d6ff4933cc1e156ce04e2c2d52162f.js:10)\r\n    at vendor-35d6ff4933cc1e156ce04e2c2d52162f.js:4\r\n```\r\n\r\n​"},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/334132107","html_url":"https://github.com/emberjs/ember.js/issues/15322#issuecomment-334132107","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/15322","id":334132107,"user":{"login":"GavinJoyce","id":2526,"avatar_url":"https://avatars0.githubusercontent.com/u/2526?v=4","gravatar_id":"","url":"https://api.github.com/users/GavinJoyce","html_url":"https://github.com/GavinJoyce","followers_url":"https://api.github.com/users/GavinJoyce/followers","following_url":"https://api.github.com/users/GavinJoyce/following{/other_user}","gists_url":"https://api.github.com/users/GavinJoyce/gists{/gist_id}","starred_url":"https://api.github.com/users/GavinJoyce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GavinJoyce/subscriptions","organizations_url":"https://api.github.com/users/GavinJoyce/orgs","repos_url":"https://api.github.com/users/GavinJoyce/repos","events_url":"https://api.github.com/users/GavinJoyce/events{/privacy}","received_events_url":"https://api.github.com/users/GavinJoyce/received_events","type":"User","site_admin":false},"created_at":"2017-10-04T11:56:26Z","updated_at":"2017-10-04T11:56:26Z","author_association":"MEMBER","body":"To summarise the issue, the following is fine in Ember 2.12 but breaks on production builds, and not in development builds, in Ember 2.13+:\r\n\r\n```js\r\nexport default Ember.Component.extend({\r\n  container: null\r\n});\r\n```\r\n\r\nI've asked in [#dev-ember](https://embercommunity.slack.com/messages/C06JXEHU7/) to see which one of these is correct:\r\n\r\n1) `container` is a reserved property in components and we're missing a dev time error or\r\n2) this is a bug in Ember\r\n\r\n"}}
{"actor":{"display_login":"GavinJoyce"}}