{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/14557","repository_url":"https://api.github.com/repos/emberjs/ember.js","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/14557/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/14557/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/14557/events","html_url":"https://github.com/emberjs/ember.js/issues/14557","id":186219338,"number":14557,"title":"TypeError: Invalid value used as weak map key, in get() with canary","user":{"login":"backspace","id":43280,"avatar_url":"https://avatars.githubusercontent.com/u/43280?v=3","gravatar_id":"","url":"https://api.github.com/users/backspace","html_url":"https://github.com/backspace","followers_url":"https://api.github.com/users/backspace/followers","following_url":"https://api.github.com/users/backspace/following{/other_user}","gists_url":"https://api.github.com/users/backspace/gists{/gist_id}","starred_url":"https://api.github.com/users/backspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backspace/subscriptions","organizations_url":"https://api.github.com/users/backspace/orgs","repos_url":"https://api.github.com/users/backspace/repos","events_url":"https://api.github.com/users/backspace/events{/privacy}","received_events_url":"https://api.github.com/users/backspace/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-31T07:13:26Z","updated_at":"2016-11-01T09:05:13Z","closed_at":null,"body":"Hey, I’ve been trying out the Ember beta and canary versions with [`travis-web`](https://github.com/travis-ci/travis-web) and getting a WeakMap error. When I run with `canary` in `bower.js` in Chrome 56, I get this stacktrace:\r\n\r\n```\r\nWeakMap_setMeta (ember.debug.js:19145)\r\nmeta (ember.debug.js:19246)\r\nwatchKey (ember.debug.js:22349)\r\nRootPropertyReference (ember.debug.js:14278)\r\nget (ember.debug.js:14184)\r\nreferenceFromParts (ember.debug.js:44196)\r\nevaluate (ember.debug.js:46140)\r\nevaluate (ember.debug.js:45613)\r\nevaluateArgs (ember.debug.js:53312)\r\nevaluate (ember.debug.js:48694)\r\nexecute (ember.debug.js:53279)\r\nRootState.render (ember.debug.js:11301)\r\nrunInTransaction (ember.debug.js:22272)\r\n_renderRoots (ember.debug.js:11566)\r\n_renderRootsTransaction (ember.debug.js:11604)\r\n_renderRoot (ember.debug.js:11525)\r\n_appendDefinition (ember.debug.js:11438)\r\nappendOutletView (ember.debug.js:11421)\r\ninvoke (ember.debug.js:337)\r\nflush (ember.debug.js:407)\r\nflush (ember.debug.js:531)\r\nend (ember.debug.js:601)\r\nrun (ember.debug.js:724)\r\nfire (jquery.js:3187)\r\nfireWith (jquery.js:3317)\r\nready (jquery.js:3536)\r\ncompleted (jquery.js:3552)\r\n```\r\n\r\nSimilar errors happen with Safari, Firefox, and Chrome 53.\r\n\r\nThis can be reproduced with the repository running locally with `beta` or `canary` as the Ember version in `bower.json`. When I enable pausing on exceptions, I see that the `get` is on a property key of `config`:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/43280/19846566/d87e71ec-9f40-11e6-8d65-6e644136a248.png)\r\n\r\nI’ve been working on permanent [beta](https://ember-beta.travis-ci.org/) and [canary](https://ember-canary.travis-ci.org/) production environment deployments of Ember, which are failing differently with this error:\r\n\r\n```\r\nember.prod.js:20058 Uncaught TypeError: Cannot read property 'config' of undefined\r\n```\r\n\r\nThe presence of `config` there makes me wonder if they’re somehow related though, but the stack trace is pretty different:\r\n\r\n<details>\r\n<summary>Production canary stacktrace</summary>\r\n```\r\nr (ember.prod.js:20058)\r\nt.compute (ember.prod.js:13338)\r\nt.value (ember.prod.js:13213)\r\nt.compute (ember.prod.js:13376)\r\nt.value (ember.prod.js:13213)\r\ne.value (ember.prod.js:47770)\r\ne.initialize (ember.prod.js:41539)\r\ne.peek (ember.prod.js:41513)\r\nt.evaluate (ember.prod.js:46085)\r\ne.execute (ember.prod.js:50289)\r\nd (ember.prod.js:49863)\r\nrender (ember.prod.js:10524)\r\nh (ember.prod.js:10477)\r\ne._renderRoots (ember.prod.js:10787)\r\ne._renderRootsTransaction (ember.prod.js:10825)\r\ne._renderRoot (ember.prod.js:10746)\r\ne._appendDefinition (ember.prod.js:10659)\r\ne.appendOutletView (ember.prod.js:10642)\r\ninvoke (ember.prod.js:326)\r\nflush (ember.prod.js:396)\r\nflush (ember.prod.js:520)\r\nend (ember.prod.js:590)\r\nrun (ember.prod.js:713)\r\njoin (ember.prod.js:735)\r\nl.join (ember.prod.js:20411)\r\n(anonymous function) (ember.prod.js:20474)\r\nl (jquery.js:3187)\r\nfireWith (jquery.js:3317)\r\nready (jquery.js:3536)\r\na (jquery.js:3552)\r\n```\r\n</details>\r\n\r\nI’m not familiar with this code so I haven’t gotten anywhere with trying to debug. Let me know if there’s any additional information I can provide."},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/257518785","html_url":"https://github.com/emberjs/ember.js/issues/14557#issuecomment-257518785","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/14557","id":257518785,"user":{"login":"backspace","id":43280,"avatar_url":"https://avatars.githubusercontent.com/u/43280?v=3","gravatar_id":"","url":"https://api.github.com/users/backspace","html_url":"https://github.com/backspace","followers_url":"https://api.github.com/users/backspace/followers","following_url":"https://api.github.com/users/backspace/following{/other_user}","gists_url":"https://api.github.com/users/backspace/gists{/gist_id}","starred_url":"https://api.github.com/users/backspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backspace/subscriptions","organizations_url":"https://api.github.com/users/backspace/orgs","repos_url":"https://api.github.com/users/backspace/repos","events_url":"https://api.github.com/users/backspace/events{/privacy}","received_events_url":"https://api.github.com/users/backspace/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T09:05:13Z","updated_at":"2016-11-01T09:05:13Z","body":"hmm, well that `config` presumably comes from [here](https://github.com/travis-ci/travis-web/blob/f500c1eb225f087b9eed992ed970facacc71d611/app/initializers/config.js#L8). Is it a faux pas to reference the config in templates like this? This decision predates me and the addition of feature flags, which maybe could be used instead. But I see `config.` all over the place in templates. 😱"}}
{"actor":{"display_login":"backspace"}}