Skip to content

[DataGridPro] Some components are not exported anymore since bundle-split #4133

@cq-ubaid-khan

Description

@cq-ubaid-khan

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

I had a requirement where I had to create a customized Datagrid column menu, Where I have custom menu items along with native menu items, It was working fine until a day when import suddenly throw an error TS2305: Module '"@mui/x-data-grid-pro"' has no exported member 'GridColumnPinningMenuItems'. I don't know what has happened, I try to find documentation about GridColumnPinningMenuItems but that does not exist on mui website.

My Code which was working before the issue:

import {
  GridColumnMenuContainer, HideGridColMenuItem, GridColumnsMenuItem, 

   GridColumnPinningMenuItems // <--- this is not exported
} from "@mui/x-data-grid-pro";

<GridColumnMenuContainer >
      <MenuItem onClick={() => onFilter(currentColumn)}>Filter</MenuItem>
      <HideGridColMenuItem onClick={hideMenu} column={currentColumn} />
      <GridColumnsMenuItem onClick={hideMenu} column={currentColumn} />
      
      {/* column pinning */}
      <GridColumnPinningMenuItems onClick={hideMenu} column={currentColumn} />
</GridColumnMenuContainer>

Expected behavior 🤔

No response

Steps to reproduce 🕹

Context 🔦

No response

Your environment 🌎

`npx @mui/envinfo`
    System:
    OS: Windows 10 10.0.19043
  Binaries:
    Node: 14.16.1 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 6.14.12 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: v99
    Edge: Spartan (44.19041.1266.0), Chromium (99.0.1150.36)
  npmPackages:
    @emotion/react: ^11.8.1 => 11.8.1
    @emotion/styled: ^11.8.1 => 11.8.1
    @mui/base:  5.0.0-alpha.71
    @mui/icons-material: ^5.5.0 => 5.5.0
    @mui/lab: ^5.0.0-alpha.72 => 5.0.0-alpha.72
    @mui/material: ^5.5.0 => 5.5.0
    @mui/private-theming:  5.4.4
    @mui/styled-engine: ^5.4.4 => 5.4.4
    @types/react: ^17.0.0 => 17.0.39
    react: ^17.0.0 => 17.0.2
    react-dom: ^17.0.0 => 17.0.2
    typescript: ^4.0.0 => 4.6.2

Metadata

Metadata

Labels

plan: ProImpact at least one Pro user.scope: data gridChanges related to the data grid.type: regressionA bug, but worse, it used to behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions