Skip to content
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

Error "Cannot read properties of undefined (reading 'muiName')" when using @jbrowse/react-linear-genome-view #4609

Closed
yeweiyang96 opened this issue Oct 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@yeweiyang96
Copy link

Describe the bug

When I use the package @jbrowse/react-linear-genome-view, I encounter the following error:
Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'muiName') at createSvgIcon (/Users/mac-studio/Desktop/workshop/g4vista-web/g4vista/node_modules/@mui/material/utils/createSvgIcon.js:24:31) at <anonymous> (/Users/mac-studio/Desktop/workshop/g4vista-web/g4vista/node_modules/@mui/icons-material/esm/Menu.js:5:16)

This issue does not occur when using version 2.12.0. I also cloned the jbrowse-react-linear-genome-view-vite-demo repository, and the same issue appears there as well.

**Version:**2.15.4
MacOS 15.0.1(M1) Chrome

@yeweiyang96 yeweiyang96 added the bug Something isn't working label Oct 18, 2024
@cmdcolin
Copy link
Collaborator

thanks for reporting this. from what I can tell, production builds actually work but this issue does come up in dev mode. i'll see if i can track it down...

@cmdcolin
Copy link
Collaborator

cmdcolin commented Oct 18, 2024

I believe this is the culprit to this bug mui/material-ui#43624 (@mui/icons-material) which happened in @mui/icons-material 6.1.0

I pushed a change to our jbrowse-react-linear-genome-view-vite-demo to force use of @mui/icons-material v6.0.2 instead of the newer 6.1.0 which fixes it for now, but in the future, we'll probably want to track this down and fix it better so we don't rely on this

cmdcolin added a commit to GMOD/jbrowse-react-linear-genome-view-vite-demo that referenced this issue Oct 18, 2024
cmdcolin added a commit to GMOD/jbrowse-react-app-vite-demo that referenced this issue Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants