{"action":"created","issue":{"url":"https://api.github.com/repos/hypothesis/h/issues/2259","labels_url":"https://api.github.com/repos/hypothesis/h/issues/2259/labels{/name}","comments_url":"https://api.github.com/repos/hypothesis/h/issues/2259/comments","events_url":"https://api.github.com/repos/hypothesis/h/issues/2259/events","html_url":"https://github.com/hypothesis/h/issues/2259","id":81386522,"number":2259,"title":"Problem when building Chrome extension for staging","user":{"login":"seanh","id":22498,"avatar_url":"https://avatars.githubusercontent.com/u/22498?v=3","gravatar_id":"","url":"https://api.github.com/users/seanh","html_url":"https://github.com/seanh","followers_url":"https://api.github.com/users/seanh/followers","following_url":"https://api.github.com/users/seanh/following{/other_user}","gists_url":"https://api.github.com/users/seanh/gists{/gist_id}","starred_url":"https://api.github.com/users/seanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanh/subscriptions","organizations_url":"https://api.github.com/users/seanh/orgs","repos_url":"https://api.github.com/users/seanh/repos","events_url":"https://api.github.com/users/seanh/events{/privacy}","received_events_url":"https://api.github.com/users/seanh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-27T10:21:04Z","updated_at":"2015-05-27T17:12:04Z","closed_at":"2015-05-27T17:02:00Z","body":"When I try to build the Chrome extension for staging with `hypothesis-buildext conf/production.ini chrome --base 'https://stage.hypothes.is/' --assets 'chrome-extension://oldbkmekfdjiffgkconlamcngmkioffd/public'` it builds a broken extension.\r\n\r\nAngular isn't running so I see the unrendered `{{ ... }}` Angular templates in the sidebar, and in the console I have this from `angular.min.js:4`:\r\n\r\n```\r\nTypeError: Cannot read property 'hasOwnProperty' of undefined\r\n    at new AppController (app.min.js:1)\r\n    at invoke (angular.min.js:2)\r\n    at Object.instantiate (angular.min.js:2)\r\n    at angular.min.js:3\r\n    at angular.min.js:3\r\n    at forEach (angular.min.js:1)\r\n    at nodeLinkFn (angular.min.js:3)\r\n    at compositeLinkFn (angular.min.js:2)\r\n    at publicLinkFn (angular.min.js:2)\r\n    at angular.min.js:1\r\n```\r\n\r\nHere's a screencast of me building the extension:\r\n\r\nhttp://youtu.be/t6pedTSH7z0\r\n\r\nNotes:\r\n\r\n* On current latest master\r\n* No modifications except to add a dependency (needed to build the extension with production.ini) to setup.py\r\n* Fresh virtualenv, make dev is working, tests are all passing\r\n* Lots of output from npm, I do have some things globally installed, but nothing that looks bad\r\n* Chrome extension ID is correct\r\n* I get one warning when building the extension about a secret key but that doesn't seem like it would cause this\r\n* No previous copy of the extension installed, I'm installing it first time as an unpacked extension\r\n* The extension opens hypothes.is/welcome even though it was built for stage.hypothes.is\r\n\r\nIf I turn on _pause on uncaught exceptions_ in Chrome I'm getting baffling exceptions in the middle of `jquery.min.js`.\r\n\r\nNo idea what's wrong here.\r\n\r\nI'll investigate further later this afternoon"},"comment":{"url":"https://api.github.com/repos/hypothesis/h/issues/comments/106000626","html_url":"https://github.com/hypothesis/h/issues/2259#issuecomment-106000626","issue_url":"https://api.github.com/repos/hypothesis/h/issues/2259","id":106000626,"user":{"login":"seanh","id":22498,"avatar_url":"https://avatars.githubusercontent.com/u/22498?v=3","gravatar_id":"","url":"https://api.github.com/users/seanh","html_url":"https://github.com/seanh","followers_url":"https://api.github.com/users/seanh/followers","following_url":"https://api.github.com/users/seanh/following{/other_user}","gists_url":"https://api.github.com/users/seanh/gists{/gist_id}","starred_url":"https://api.github.com/users/seanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanh/subscriptions","organizations_url":"https://api.github.com/users/seanh/orgs","repos_url":"https://api.github.com/users/seanh/repos","events_url":"https://api.github.com/users/seanh/events{/privacy}","received_events_url":"https://api.github.com/users/seanh/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T17:12:04Z","updated_at":"2015-05-27T17:12:04Z","body":"I'm mostly happy and relieved but with a lingering underlying sense of angst!"}}