Closed
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 the affected event from your Sentry account (N/A)
Package + Version
-
@sentry/browser
: -
@sentry/node
-
raven-js
-
raven-node
(raven for node) - other:
@sentry/ember
Version:
6.10.0+
Description
In 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:
assert(
'[ember-metrics] You must configure Heap adapter. See documentation.',
typeof config !== 'undefined'
);
const { appId, pageViewPrefix } = config;
Using v6.6.0 this code works, but suddenly, when v6.10 (or later), is introduced we see the type for assert
fail.
I'm not entirely sure this is the problem, but this is a bit of a smoking gun:
sentry-javascript/packages/ember/addon/index.ts
Lines 11 to 13 in a72ea44
Note that this typing differs from the DefinitelyTyped version:
I believe that If you were to use the @types/ember__debug
package instead of rolling your own type this problem should be resolved.