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

[question] Does MUI and MUI-X require the minimum version of node library? #4973

Closed
moonerr opened this issue May 22, 2022 · 4 comments
Closed
Labels
dx Related to developers' experience support: commercial Support request from paid users support: question Community support but can be turned into an improvement

Comments

@moonerr
Copy link

moonerr commented May 22, 2022

Order ID 💳

#39623

The problem in depth 🔍

Hi, the latest types/react upgrades have affected a lot of developers. Unfortunately, our dev team is no exception, with several type-check errors and broken component properties.
According to the mui website, we have to keep updated to the latest version of types/react. So I wondered if mui or mui-x requires a minimal version of the node library as well. And could you please also give me any suggestions on how we manage the library upgrades?
Thanks.

Your environment 🌎

`npx @mui/envinfo`
    System:
    OS: Windows 10 10.0.19043
  Binaries:
    Node: 14.18.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD  
    npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD  
  Browsers:
    Chrome: Not Found
    Edge: Spartan (44.19041.1266.0), Chromium (101.0.1210.53)
  npmPackages:
    @emotion/react: ^11.5.0 => 11.9.0
    @emotion/styled: ^11.3.0 => 11.8.1
    @mui/base:  5.0.0-alpha.72
    @mui/icons-material: 5.6.2 => 5.6.2
    @mui/lab: 5.0.0-alpha.73 => 5.0.0-alpha.73
    @mui/material: 5.5.3 => 5.5.3
    @mui/private-theming:  5.8.0
    @mui/styled-engine:  5.8.0
    @mui/styles: 5.5.3 => 5.5.3
    @mui/system:  5.8.0
    @mui/types:  7.1.3
    @mui/utils:  5.8.0
    @mui/x-data-grid: 5.7.0 => 5.7.0
    @mui/x-data-grid-pro: 5.7.0 => 5.7.0
    @types/react: 16.9.20 => 16.9.20
    react: ^17.0.0 => 17.0.2
    react-dom: ^17.0.0 => 17.0.2
    typescript: ^4.5.2 => 4.6.4
@moonerr moonerr added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: commercial Support request from paid users labels May 22, 2022
@cherniavskii
Copy link
Member

According to the mui website, we have to keep updated to the latest version of types/react

Are you referring to v4 to v5 migration guide? MUI packages do not require the latest version of @types/react, for example @mui/material supports both v17 and v18 of @types/react (see https://unpkg.com/browse/@mui/[email protected]/package.json)

So I wondered if mui or mui-x requires a minimal version of the node library as well

No, MUI packages do not require node at all, since those are client-side libraries.
But other tools you might use (e.g. CRA, Next.js, Gatsby) do require node. That's out of MUI's scope though.

And could you please also give me any suggestions on how we manage the library upgrades?

Can you elaborate more on the problem you experience? Did you upgrade from v4 to v5? Do you use @mui/material as well?

@cherniavskii cherniavskii added support: question Community support but can be turned into an improvement dx Related to developers' experience and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels May 23, 2022
@cherniavskii
Copy link
Member

Just an update on node.js topic - if you use server-side rendering, MUI requires minimum v12.17 of node (or 12.0 with --experimental-modules enabled) - see https://mui.com/material-ui/getting-started/supported-platforms/#server
But for example latest Next.js requires node >=12.22.0, CRA requires node >=14.0.0, so you won't be impacted by MUI node requirement anyway

@oliviertassinari
Copy link
Member

oliviertassinari commented Mar 1, 2025

It looks like we are good on this one closing. I have created mui/base-ui#1522 to make sure we don't regresse on this in the future.

Copy link

github-actions bot commented Mar 1, 2025

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

@moonerr 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dx Related to developers' experience support: commercial Support request from paid users support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

3 participants