Title: Not Working with Cloudflare workers: dist.init is not a function · Issue #1665 · getsentry/sentry-javascript · GitHub
Open Graph Title: Not Working with Cloudflare workers: dist.init is not a function · Issue #1665 · getsentry/sentry-javascript
X Title: Not Working with Cloudflare workers: dist.init is not a function · Issue #1665 · getsentry/sentry-javascript
Description: Package + Version @sentry/minimal @sentry/browser raven-js Version: 4.1.1 Description I'm trying to use Sentry's javascript SDK with cloudflare workers, however I'm getting an error using either @sentry/minimal, @sentry/browser or raven-...
Open Graph Description: Package + Version @sentry/minimal @sentry/browser raven-js Version: 4.1.1 Description I'm trying to use Sentry's javascript SDK with cloudflare workers, however I'm getting an error using either @s...
X Description: Package + Version @sentry/minimal @sentry/browser raven-js Version: 4.1.1 Description I'm trying to use Sentry's javascript SDK with cloudflare workers, however I'm getting an error usi...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/1665
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Not Working with Cloudflare workers: dist.init is not a function","articleBody":"## Package + Version\r\n\r\n- [x] `@sentry/minimal`\r\n- [x] `@sentry/browser`\r\n- [x] `raven-js`\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`, `@sentry/browser` or `raven-js`. \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.\u003canonymous> (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. `raven-js` gave yet another error.\r\n","author":{"url":"https://github.com/samuelcolvin","@type":"Person","name":"samuelcolvin"},"datePublished":"2018-10-19T12:10:50Z","url":"https://github.com/getsentry/sentry-javascript/issues/1665"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:13d2e165-b1da-c69a-4928-78bcd0f3ba20 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CFF6:39E694:1F3864:2BD10D:6B04389A |
| html-safe-nonce | d8d319bb1a37efe3cf009161e3cb7f4e2cb3374222fd6c5547903eda28f9357e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkY2OjM5RTY5NDoxRjM4NjQ6MkJEMTBEOjZCMDQzODlBIiwidmlzaXRvcl9pZCI6IjUwNjY3NzgyMDM2OTY0MTI4MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7784b8386887a9e0d0bbf907063baf67221487eba4050ecdbdc5fb0636025e69 |
| hovercard-subject-tag | issue:371929713 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/1665/issue_layout |
| twitter:image | https://opengraph.githubassets.com/79844d2df0665b938de475911dcb9ce9450ebf3f9ce04c58c562926fccab8330/getsentry/sentry-javascript/issues/1665 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/79844d2df0665b938de475911dcb9ce9450ebf3f9ce04c58c562926fccab8330/getsentry/sentry-javascript/issues/1665 |
| og:image:alt | Package + Version @sentry/minimal @sentry/browser raven-js Version: 4.1.1 Description I'm trying to use Sentry's javascript SDK with cloudflare workers, however I'm getting an error using either @s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | samuelcolvin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width