Skip to content

TypeError r.mergeOptions is not a function #5339

Closed
@m-nathani

Description

@m-nathani

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/react

SDK Version

7.2.0

Framework Version

7.2.0

Link to Sentry event

https://sentry.io/share/issue/4769d6305de648aa98e1f87006d2f279/

Steps to Reproduce

Random occurrence of this error is faced in our app.

Expected Result

To add proper code checks to make sure it doesnt break on reat apps

Actual Result

      }
      const self = hub.getIntegration(InboundFilters);
      if (self) {
        const client = hub.getClient() as Client;
        const clientOptions = client ? client.getOptions() : {};
        const options = self.mergeOptions(clientOptions);  // <-------------------- happening here !!!
        if (self.shouldDropEvent(event, options)) {
          return null;
        }
      }
      return event;

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