-
Notifications
You must be signed in to change notification settings - Fork 49
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
Bug: Component crashes since 2.5 update #908
Comments
Hey @KubaniGal we may need some more details to be able to help investigate this, since we have many use cases of mux player react and haven't yet run into this problem. Is there any chance you can share a simplified reproduction case, like a github repo, codesandbox, or the like? |
Hey, thanks for the reply..
not sure i have more to provide, this works fine in any version that isnt 2.5, in 2.5 the error shows as i attached above |
We are also experiencing this issue when bumping to 2.5.0 from 2.4.x . We are bundling the Interestingly enough, when we directly import and consume Not exactly sure what would cause this nested dependency type issue. note: |
@KubaniGal @scmilee If either of you can share a codebase + steps to reproduce (codesandbox, stackblitz, public github repo) for the issue, that would go a long way. We and our customers use Mux Player across many react setups that appear to be working fine, so there's almost definitely some other detail in the setup (react versions, build tools, etc. etc.) that's causing the issue to show up. |
Here is the sandbox, if the runtime error isn't covering the preview page it's in the terminal. And as mentioned before, direct usage of the lib will work, only seems to be an issue when it's bundled a level down. |
I am also facing this issue. |
I ran into the same issue here. I was able to fix it by adding this to my webpack config:
|
I ran into this issue as well. I fixed the problem with this:
I have multiple sub-packages in my project which is why node_modules is one level up from the webpack config. Not sure if that's related to the root cause. |
… 5.3.1 due to build issues in more complex build setups. (#996) **NOTE**: Although our new semver matchers allow for newer versions of mux-embed to be installed (so long as yarn.lock, package-lock.json, package-shrinkwrap.json of uses don't get in the way), we should still update the min version, since 5.3.0 will break Mux Player (et al.) for some build setups for integrators. fixes #908
Hey there folks! We finally were able to prioritize this and dig into root cause. The short version:
Let me know if there are any questions/comments/concerns here or if you're still having issues after doing ☝️. Sorry for the delay on us being able to prioritize this one! |
Is there an existing issue for this?
Which Mux Elements/Packages does this apply to? Select all that apply
mux-player-react
Which browsers are you using?
Chrome
Which operating systems are you using?
macOS
Description
Hi, ever since mux player react version updated to 2.5 (4 days ago) the component fails, i reverted back to 2.4.1 for now, but i wanted to report this to make sure it handled, this happens both locally and when running github checks.
when i reverted back to 2.4.1 the issue was resolved so it must have been the latest version update
this is the call stack and error:
mux.cjs.js:1 Uncaught TypeError: ue.default.getLevel is not a function
at ../node_modules/mux-embed/dist/mux.cjs.js (mux.cjs.js:1:17456)
at options.factory (react refresh:6:1)
at webpack_require (bootstrap:24:1)
at fn (hot module replacement:61:1)
at ../node_modules/@mux/playback-core/dist/index.cjs.js (index.cjs.js:1:1777)
at options.factory (react refresh:6:1)
at webpack_require (bootstrap:24:1)
at fn (hot module replacement:61:1)
at ../node_modules/@mux/mux-player-react/dist/index.cjs.js (index.cjs.js:1:801)
at options.factory (react refresh:6:1)
Thanks in advance.
Reduced test case
No response
Steps to reproduce
Current Behavior
fails to navigate to app
Expected Behavior
should work as it did in previous versions
Errors
mux.cjs.js:1 Uncaught TypeError: ue.default.getLevel is not a function
at ../node_modules/mux-embed/dist/mux.cjs.js (mux.cjs.js:1:17456)
at options.factory (react refresh:6:1)
at webpack_require (bootstrap:24:1)
at fn (hot module replacement:61:1)
at ../node_modules/@mux/playback-core/dist/index.cjs.js (index.cjs.js:1:1777)
at options.factory (react refresh:6:1)
at webpack_require (bootstrap:24:1)
at fn (hot module replacement:61:1)
at ../node_modules/@mux/mux-player-react/dist/index.cjs.js (index.cjs.js:1:801)
at options.factory (react refresh:6:1)
What version of the package are you using?
2.5
The text was updated successfully, but these errors were encountered: