{"action":"created","issue":{"url":"https://api.github.com/repos/getsentry/sentry-javascript/issues/1665","repository_url":"https://api.github.com/repos/getsentry/sentry-javascript","labels_url":"https://api.github.com/repos/getsentry/sentry-javascript/issues/1665/labels{/name}","comments_url":"https://api.github.com/repos/getsentry/sentry-javascript/issues/1665/comments","events_url":"https://api.github.com/repos/getsentry/sentry-javascript/issues/1665/events","html_url":"https://github.com/getsentry/sentry-javascript/issues/1665","id":371929713,"node_id":"MDU6SXNzdWUzNzE5Mjk3MTM=","number":1665,"title":"Not Working with Cloudflare workers: dist.init is not a function","user":{"login":"samuelcolvin","id":4039449,"node_id":"MDQ6VXNlcjQwMzk0NDk=","avatar_url":"https://avatars3.githubusercontent.com/u/4039449?v=4","gravatar_id":"","url":"https://api.github.com/users/samuelcolvin","html_url":"https://github.com/samuelcolvin","followers_url":"https://api.github.com/users/samuelcolvin/followers","following_url":"https://api.github.com/users/samuelcolvin/following{/other_user}","gists_url":"https://api.github.com/users/samuelcolvin/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelcolvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelcolvin/subscriptions","organizations_url":"https://api.github.com/users/samuelcolvin/orgs","repos_url":"https://api.github.com/users/samuelcolvin/repos","events_url":"https://api.github.com/users/samuelcolvin/events{/privacy}","received_events_url":"https://api.github.com/users/samuelcolvin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-19T12:10:50Z","updated_at":"2018-10-22T09:21:24Z","closed_at":null,"author_association":"NONE","body":"## Package + Version\r\n\r\n- [x] `@sentry/minimal`\r\n- [x] `@sentry/browser`\r\n\r\n### Version:\r\n\r\n```\r\n4.1.1\r\n```\r\n\r\n## Description\r\n\r\nI'm trying to use Sentry's javascript SDK with cloudflare workers, however I'm getting an error using either `@sentry/minimal` or `@sentry/browser`.\r\n\r\nThe code is at available at https://github.com/tutorcruncher/cloudflare-worker and a preview is avilable at https://cloudflareworkers.com/#8dc47c7e9bd4a5463e6495630f82b7e9:https://workers.tutorcruncher.com although I'm not sure how long that will last for.\r\n\r\nIf the preview has stopped working you should be able to run a new preview with simply `yarn && python preview.py`.\r\n\r\n```\r\nUncaught TypeError: dist.init is not a function\r\n    at Module.<anonymous> (worker.js:1863:13)\r\n    at __webpack_require__ (worker.js:20:30)\r\n    at worker.js:84:18\r\n    at worker.js:87:10\r\n```\r\n\r\nI also tried `@sentry/browser` but an error `The 'referrerPolicy' field on 'RequestInitializerDict' is not implemented.` which makes sense.\r\n"},"comment":{"url":"https://api.github.com/repos/getsentry/sentry-javascript/issues/comments/431783061","html_url":"https://github.com/getsentry/sentry-javascript/issues/1665#issuecomment-431783061","issue_url":"https://api.github.com/repos/getsentry/sentry-javascript/issues/1665","id":431783061,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTc4MzA2MQ==","user":{"login":"HazAT","id":363802,"node_id":"MDQ6VXNlcjM2MzgwMg==","avatar_url":"https://avatars2.githubusercontent.com/u/363802?v=4","gravatar_id":"","url":"https://api.github.com/users/HazAT","html_url":"https://github.com/HazAT","followers_url":"https://api.github.com/users/HazAT/followers","following_url":"https://api.github.com/users/HazAT/following{/other_user}","gists_url":"https://api.github.com/users/HazAT/gists{/gist_id}","starred_url":"https://api.github.com/users/HazAT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HazAT/subscriptions","organizations_url":"https://api.github.com/users/HazAT/orgs","repos_url":"https://api.github.com/users/HazAT/repos","events_url":"https://api.github.com/users/HazAT/events{/privacy}","received_events_url":"https://api.github.com/users/HazAT/received_events","type":"User","site_admin":false},"created_at":"2018-10-22T09:21:24Z","updated_at":"2018-10-22T09:21:24Z","author_association":"MEMBER","body":"How does you `import` / `require` statement look like of `@sentry/browser`?"}}
{"actor":{"display_login":"HazAT"}}