{"action":"created","issue":{"url":"https://api.github.com/repos/getsentry/sentry-javascript/issues/1752","repository_url":"https://api.github.com/repos/getsentry/sentry-javascript","labels_url":"https://api.github.com/repos/getsentry/sentry-javascript/issues/1752/labels{/name}","comments_url":"https://api.github.com/repos/getsentry/sentry-javascript/issues/1752/comments","events_url":"https://api.github.com/repos/getsentry/sentry-javascript/issues/1752/events","html_url":"https://github.com/getsentry/sentry-javascript/issues/1752","id":382387171,"node_id":"MDU6SXNzdWUzODIzODcxNzE=","number":1752,"title":"TypeError: Cannot read property 'extra' of undefined","user":{"login":"tstirrat15","id":2581423,"node_id":"MDQ6VXNlcjI1ODE0MjM=","avatar_url":"https://avatars0.githubusercontent.com/u/2581423?v=4","gravatar_id":"","url":"https://api.github.com/users/tstirrat15","html_url":"https://github.com/tstirrat15","followers_url":"https://api.github.com/users/tstirrat15/followers","following_url":"https://api.github.com/users/tstirrat15/following{/other_user}","gists_url":"https://api.github.com/users/tstirrat15/gists{/gist_id}","starred_url":"https://api.github.com/users/tstirrat15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tstirrat15/subscriptions","organizations_url":"https://api.github.com/users/tstirrat15/orgs","repos_url":"https://api.github.com/users/tstirrat15/repos","events_url":"https://api.github.com/users/tstirrat15/events{/privacy}","received_events_url":"https://api.github.com/users/tstirrat15/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-19T20:49:28Z","updated_at":"2018-11-19T22:18:44Z","closed_at":"2018-11-19T21:07:27Z","author_association":"NONE","body":"- [x] Review the documentation: https://docs.sentry.io/\r\n- [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\n- [x] Look through the changelog between most recent version and affected version\r\n\r\n## Package + Version\r\n\r\n- [x] `@sentry/browser`: 4.2.1\r\n- [x] `@sentry/node`: 4.2.1\r\n- [ ] `raven-js`\r\n- [ ] `raven-node` _(raven for node)_\r\n- [ ] other:\r\n\r\n### Version:\r\n\r\n```\r\n4.2.1\r\n```\r\n\r\n## Description\r\n\r\nI implemented the [React error boundary](https://docs.sentry.io/platforms/javascript/react/) integration in our project per the docs. I did, however, change the `import * as Sentry` to `import { withScope, captureException }` [like so](https://hastebin.com/lojacolivi.jsx).\r\n\r\nI don't know if that's related to the issue that I'm seeing, but it seemed potentially pertinent.\r\n\r\nThe console stacktrace complained about the `setExtra` call, and specifically [this line](https://github.com/getsentry/sentry-javascript/blob/master/packages/hub/src/scope.ts#L108), where the `this` context seems to have come undone.\r\n\r\nCould this be related to the import method? If so, why does this library functioning depend on doing `import * as Sentry`?"},"comment":{"url":"https://api.github.com/repos/getsentry/sentry-javascript/issues/comments/440062278","html_url":"https://github.com/getsentry/sentry-javascript/issues/1752#issuecomment-440062278","issue_url":"https://api.github.com/repos/getsentry/sentry-javascript/issues/1752","id":440062278,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDA2MjI3OA==","user":{"login":"tstirrat15","id":2581423,"node_id":"MDQ6VXNlcjI1ODE0MjM=","avatar_url":"https://avatars0.githubusercontent.com/u/2581423?v=4","gravatar_id":"","url":"https://api.github.com/users/tstirrat15","html_url":"https://github.com/tstirrat15","followers_url":"https://api.github.com/users/tstirrat15/followers","following_url":"https://api.github.com/users/tstirrat15/following{/other_user}","gists_url":"https://api.github.com/users/tstirrat15/gists{/gist_id}","starred_url":"https://api.github.com/users/tstirrat15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tstirrat15/subscriptions","organizations_url":"https://api.github.com/users/tstirrat15/orgs","repos_url":"https://api.github.com/users/tstirrat15/repos","events_url":"https://api.github.com/users/tstirrat15/events{/privacy}","received_events_url":"https://api.github.com/users/tstirrat15/received_events","type":"User","site_admin":false},"created_at":"2018-11-19T22:18:44Z","updated_at":"2018-11-19T22:18:44Z","author_association":"NONE","body":"Is this in the documentation? If not, is there a place that I can add it to the documentation? This isn't entirely intuitive."}}
{"actor":{"display_login":"tstirrat15"}}