Skip to content

Constant "self._mergeOptions is not a function." #5572

Closed
@KoryNunn

Description

@KoryNunn

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/browser

SDK Version

7.8.1

Framework Version

No response

Link to Sentry event

https://sentry.io/organizations/gritlife/issues/3488117873/?project=6136884

Steps to Reproduce

No idea. 90% of our events are this error. v6 used to send almost only self._handler is not a function

We install via NPM and bundle with browserify.

We initialize via:

const Sentry = require('@sentry/browser');
const { Integrations } = require('@sentry/tracing');

Sentry.init({
  integrations: [new Integrations.BrowserTracing()],
  ...config.sentry
});

The only potentially relevant note is that we do add a global error handler to handle one specific third-party issue, and re-throw all errors that are not the error we are after, basically:

window.addEventListener('error', event => {
  // Check if it's one specific error

  // If not, rethrow in a new stack to escape promises.
  setTimeout(function () {
    throw event.error;
  });
});

Expected Result

Not get this internal sentry bug.

Actual Result

We get this issue reported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions