muxinc / media-chrome

Custom elements (web components) for making audio and video player controls that look great in your website or app.
https://media-chrome.org
MIT License
1.83k stars 76 forks source link

TypeError: Cannot read properties of null (reading 'updateXOffset') #986

Closed rafzan closed 2 months ago

rafzan commented 2 months ago

I'm getting this error on Sentry, running an App on Next.js, everything is up-to-date.

Triggered on this line: https://github.com/muxinc/media-chrome/blob/78c303221439b097eb4c2ffffc3fefd25b5e9722/src/js/media-chrome-button.ts#L324

Sampling: 55% Chrome Mobile WebView 117.0.5938 14% Chrome Mobile 128.0.0 10% Mobile Safari 17.6 3% Chrome Mobile 129.0.0

I don't have replay sessions, but it seems this code chunk is called when the component is being unloaded.

luwes commented 2 months ago

thanks for reporting! is this the latest version of Media Chrome?

smandava98 commented 2 months ago

+1 getting this error:

Unhandled Runtime Error TypeError: Cannot read properties of null (reading 'updateXOffset')

Call Stack HTMLElement.setupTooltip node_modules/@mux/mux-player/node_modules/media-chrome/dist/media-chrome-button.js (260:1)