You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
we saw a crash with posthog-js in our sentry tracking. The stacktrace is similiar to what was fixed with this PR: #1620
Might also be caused by rxdb. I could not really get to the root of this issue. It seems that for some reason this code runs the window?.getComputedStyle(curEl) even though curEl is not of type element.
Maybe the code checking if it is an Element is not working as expected? Maybe something weird with Safari (Apple Mail 605.1.15)?
exportfunctionisElementNode(el: Node|Element|undefined|null): el is Element{return!!el&&el.nodeType===1// Node.ELEMENT_NODE - use integer constant for browser portability}
The browser according to sentry is: Apple Mail 605.1.15
Stacktrace:
TypeError: Argument 1 ('element') to Window.getComputedStyle must be an instance of Element
at getComputedStyle([native code])
at s(../../../../node_modules/.pnpm/[email protected]/node_modules/posthog-js/dist/module.js:1:110971)
at s(../../../../node_modules/.pnpm/[email protected]/node_modules/posthog-js/dist/module.js:1:111026)
at this._mouseMoveTimeout(../../../../node_modules/.pnpm/[email protected]/node_modules/posthog-js/dist/module.js:1:111551)
The text was updated successfully, but these errors were encountered:
Hello,
we saw a crash with posthog-js in our sentry tracking. The stacktrace is similiar to what was fixed with this PR: #1620
Might also be caused by rxdb. I could not really get to the root of this issue. It seems that for some reason this code runs the
window?.getComputedStyle(curEl)
even thoughcurEl
is not of type element.Maybe the code checking if it is an Element is not working as expected? Maybe something weird with Safari (Apple Mail 605.1.15)?
The browser according to sentry is:
Apple Mail 605.1.15
Stacktrace:
The text was updated successfully, but these errors were encountered: