Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[core] Unstable_ClassNameGenerator (mui v6) didn't transform DataGrid classes #14866

Closed
kzimins-arvatosystems opened this issue Oct 4, 2024 · 3 comments · Fixed by #14867
Closed
Assignees
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module!

Comments

@kzimins-arvatosystems
Copy link

kzimins-arvatosystems commented Oct 4, 2024

Steps to reproduce

Link to live example mui v5 (working): codesandbox

Steps:

  1. Check classes of Button and DataGrid
  2. Everything transformed (has toto- prefix)

Link to live example mui v6 (broken): codesandbox

Steps:

  1. Check classes of button and datagrid
  2. DataGrid classes not transformed, only Button class transformed

Expected behavior

DataGrid classes must be transformed

Your environment

npx @mui/envinfo
Happens in any browser

System:
    OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
  Binaries:
    Node: 20.17.0 - ~/.nvm/versions/node/v20.17.0/bin/node
    npm: 10.8.2 - ~/.nvm/versions/node/v20.17.0/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: Not Found

Search keywords: datagrid, Unstable_ClassNameGenerator, generator, className
Order ID: 80084

Search keywords:

@kzimins-arvatosystems kzimins-arvatosystems added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 4, 2024
@github-actions github-actions bot added the component: data grid This is the name of the generic UI component, not the React module! label Oct 4, 2024
@michelengelen
Copy link
Member

Hey @siriwatknp ... could you check this? This should work from what I can see, but it clearly does not.

@michelengelen michelengelen transferred this issue from mui/mui-x Oct 7, 2024
@siriwatknp
Copy link
Member

@michelengelen The root cause is likely comes from missing v6 of @mui/utils in the DataGrid dependencies:

- "@mui/utils": "^5.16.6",
+ "@mui/utils": "^5.16.6 || ^6.0.0",

I am transferring this issue back to mui-x and will open a PR to fix it.

@siriwatknp siriwatknp transferred this issue from mui/material-ui Oct 8, 2024
@michelengelen michelengelen removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Oct 8, 2024
@michelengelen michelengelen changed the title Unstable_ClassNameGenerator (mui v6) didn't transform DataGrid classes [core] Unstable_ClassNameGenerator (mui v6) didn't transform DataGrid classes Oct 8, 2024
Copy link

github-actions bot commented Oct 8, 2024

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@kzimins-arvatosystems How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants