Sentry-javascript: Cannot read property '__sentry_instrumentation_handlers__' of undefined

Created on 1 Feb 2021  路  3Comments  路  Source: getsentry/sentry-javascript

Package + Version

  • [x] @sentry/browser
  • [ ] @sentry/node
  • [ ] raven-js
  • [ ] raven-node _(raven for node)_
  • [ ] other:

Version:

6.0.3

Description

@sentry/browser 6.0.3 does not work with web-vitals

It breaks here:

https://github.com/getsentry/sentry-javascript/blob/61563f87ee2aac61d81f47a1f86e23ae61c6426c/packages/utils/src/instrument.ts#L535

Due to:

https://github.com/GoogleChrome/web-vitals/blob/43ce5464e3068c796830c5e98950fd94e480f4dd/src/getLCP.ts#L64

Needs Triage

Most helpful comment

Thanks for letting us know. Patch has been merged and 6.0.4 is coming in few moments.

All 3 comments

@kamilogorek I believe, this intended to be window but since it's not called as window.addEventListener, the context is missing.

Thanks for letting us know. Patch has been merged and 6.0.4 is coming in few moments.

Nice, thank you!

Was this page helpful?
0 / 5 - 0 ratings