Skip to content

Conversation

aqeelat
Copy link
Contributor

@aqeelat aqeelat commented Aug 5, 2025

closes #19061

@romgrk romgrk added type: bug It doesn't behave as expected. scope: data grid Changes related to the data grid. labels Aug 5, 2025
Comment on lines 40 to 45
"@babel/runtime": "^7.27.4",
"@mui/x-internals": "workspace:*"
"@babel/runtime": "^7.27.4"
},
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
"@mui/x-internals": "workspace:*"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does it need to be in peer dependencies?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it brings its own peer dependencies with it. It is easier to just pass it up to data-grid because that package also depends on x-internals.

Copy link
Contributor

@romgrk romgrk Aug 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see @mui/system being used in @mui/x-internals anymore. That dependency was introduced for the type import in this file, but that type import is gone now. If we remove @mui/system from @mui/x-internals peer dependencies, would that solve the issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually yes. That would solve it. I'll update the pr.

@romgrk romgrk changed the title [visualizer] Move x-internals to peerDependencies [virtualizer] Move x-internals to peerDependencies Aug 5, 2025
@aqeelat aqeelat changed the title [virtualizer] Move x-internals to peerDependencies [internals] remove dependency on @mui/system Aug 5, 2025
@mui-bot
Copy link

mui-bot commented Aug 5, 2025

Deploy preview: https://deploy-preview-19062--material-ui-x.netlify.app/

Bundle size report

Bundle Parsed Size Gzip Size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid/DataGrid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro/DataGridPro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium/DataGridPremium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 8712ef7

@romgrk romgrk merged commit e61fe5f into mui:master Aug 5, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: data grid Changes related to the data grid. type: bug It doesn't behave as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[pickers] Missing peer dependency for @mui/x-virtualizer
3 participants