-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Constant "self._mergeOptions is not a function." #5572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, thanks for writing in. In 99% of the cases this happens when there are either two different versions of the Sentry SDK initialized, or when there is a version mismatch of installed Sentry packages. Please make sure you're only initializing the Sentry SDK once on the whole website and make sure all of Sentry's SDK packages are on the same version. (So for example that Prev: #2622 (comment), #5339, #4956 |
Could this be because we are also running @sentry/cordova, which has an interval version of [email protected]? Should the cordova plugin be updated? |
Yes, that's very likely the cause. Make sure only |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
I'm facing this same problem by setting up Sentry at React. Has anyone face the same issue at React? I'm just following basic directions at docs => https://docs.sentry.io/platforms/javascript/guides/react |
@matheusgoc This shouldn't be specific to the React SDK. Usually, this happens if multiple different versions of the Sentry SDK are installed on the same page, and or the versions of its dependencies (e.g. |
Hi @lforst. thank you for helping me! I only have Sentry.init({
dsn: process.env.REACT_APP_SENTRY_DSN,
integrations: [new BrowserTracing()],
tracesSampleRate: 1.0,
});
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(<App />); |
@matheus Can you also check your lockfile whether you have any other versions of the SDK installed? Thanks! |
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:
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:
Expected Result
Not get this internal sentry bug.
Actual Result
We get this issue reported.
The text was updated successfully, but these errors were encountered: