Title: [Ember] Type Problem Introduced in v6.10? · Issue #4172 · getsentry/sentry-javascript · GitHub
Open Graph Title: [Ember] Type Problem Introduced in v6.10? · Issue #4172 · getsentry/sentry-javascript
X Title: [Ember] Type Problem Introduced in v6.10? · Issue #4172 · getsentry/sentry-javascript
Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javascript/releases (N/A) Provide a link to t...
Open Graph Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
X Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/4172
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Ember] Type Problem Introduced in v6.10?","articleBody":"\u003c!-- Requirements: please go through this checklist before opening a new issue -->\r\n\r\n- [x] Review the documentation: https://docs.sentry.io/\r\n- [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\n- [ ] Use the latest release: https://github.com/getsentry/sentry-javascript/releases (N/A)\r\n- [ ] Provide a link to the affected event from your Sentry account (N/A)\r\n\r\n## Package + Version\r\n\r\n- [ ] `@sentry/browser`: \r\n- [ ] `@sentry/node`\r\n- [ ] `raven-js`\r\n- [ ] `raven-node` _(raven for node)_\r\n- [x] other: `@sentry/ember`\r\n\r\n### Version:\r\n\r\n```\r\n6.10.0+\r\n```\r\n\r\n## Description\r\n\r\nIn upgrading an application using `@sentry/ember` v6.6.0 to v6.15 we ran into some peculiar type regressions. Here's a snippet of our code that worked before:\r\n\r\n```typescript\r\n assert(\r\n '[ember-metrics] You must configure Heap adapter. See documentation.',\r\n typeof config !== 'undefined'\r\n );\r\n\r\n const { appId, pageViewPrefix } = config;\r\n```\r\n\r\nUsing v6.6.0 this code works, but suddenly, when v6.10 (or later), is introduced we see the type for `assert` fail.\r\n\r\nI'm not entirely sure this is the problem, but this is a bit of a smoking gun:\r\n\r\nhttps://github.com/getsentry/sentry-javascript/blob/a72ea443ffb45657a9e52b37c35f5c005e176463/packages/ember/addon/index.ts#L11-L13\r\n\r\nNote that this typing differs from the DefinitelyTyped version:\r\n\r\nhttps://github.com/DefinitelyTyped/DefinitelyTyped/blob/4a4f37536cec0d38819acd9015600de7715ac6b3/types/ember__debug/index.d.ts#L10-L14\r\n\r\nI believe that If you were to use the `@types/ember__debug` package instead of rolling your own type this problem should be resolved.","author":{"url":"https://github.com/jherdman","@type":"Person","name":"jherdman"},"datePublished":"2021-11-19T22:02:32Z","url":"https://github.com/getsentry/sentry-javascript/issues/4172"}
| 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:d5274fc6-bfa1-dd00-2fd2-280088a923d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF5A:301ABF:44DF6E:5C71FE:6B04A10F |
| html-safe-nonce | 45fd7097793ea05a8e80f7ab93d29bc10f13c835f30c7d9b44c98d9eb84375be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjVBOjMwMUFCRjo0NERGNkU6NUM3MUZFOjZCMDRBMTBGIiwidmlzaXRvcl9pZCI6IjE4NzA1MzMyNDA3NDI1MTkwNTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6d1ae4661b591dfd7b67582f4c73be3aa56e8eedc422a16f38c11b3529f41c4b |
| hovercard-subject-tag | issue:1058951585 |
| 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/4172/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f05dd566b301699568eec0d28ecc935dca993bdaf34677c260f8fde476e983d2/getsentry/sentry-javascript/issues/4172 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f05dd566b301699568eec0d28ecc935dca993bdaf34677c260f8fde476e983d2/getsentry/sentry-javascript/issues/4172 |
| og:image:alt | Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jherdman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| 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 | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| 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