Skip to content

Grid2 reference in v0.13.1 gives build error #4833

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

Closed
laztman opened this issue Apr 7, 2025 · 4 comments
Closed

Grid2 reference in v0.13.1 gives build error #4833

laztman opened this issue Apr 7, 2025 · 4 comments
Labels
bug 🐛 Something doesn't work

Comments

@laztman
Copy link

laztman commented Apr 7, 2025

Steps to reproduce

The Grid legacy deprecation, and rename of Grid2 to Grid, in MUI v7 seems to have been misplaced in Core?

package.json with:

@mui/material: ^7.0.1
@toolpad/core: ^0.13.0

gives build error for js versions, derived from

Removing the "2" in Grid, resolves it.

Current behavior

No response

Expected behavior

No response

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: Grid2, v0.13.0

@laztman laztman added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Apr 7, 2025
@Janpot Janpot transferred this issue from mui/material-ui Apr 7, 2025
@Janpot
Copy link
Member

Janpot commented Apr 7, 2025

Moving to Toolpad repository, this will be fixed in 0.14.0

@prakhargupta1 prakhargupta1 added bug 🐛 Something doesn't work and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Apr 8, 2025
@emulienfou
Copy link

If you are using Next.js you can temporarily override webpack config:

const nextConfig: NextConfig = {
   webpack: (config) => {
      config.resolve.alias["@mui/material/Grid2"] = "@mui/material/Grid";
      return config;
   }
}

@prakhargupta1
Copy link
Member

Fixed in v0.14.0.

Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work
Projects
None yet
Development

No branches or pull requests

4 participants