-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Description
Steps to reproduce
Steps:
- Create a new .tsx file
- Try to import
GridPropsorGridMapTypefrom@mui/material - See TS error when running
tsc
Current behavior
I'm attempting to upgrade to MUI v6 and my code is currently using GridProps and GridMapType. When I upgraded and ran type checking I see the following:
file1.tsx:3:10 - error TS2724: '"@mui/material"' has no exported member named 'GridProps'. Did you mean 'Grid2Props'?
3 import { GridProps, GridTypeMap } from '@mui/material';
~~~~~~~~~
file1.tsx:3:21 - error TS2724: '"@mui/material"' has no exported member named 'GridTypeMap'. Did you mean 'Grid2TypeMap'?
3 import { GridProps, GridTypeMap } from '@mui/material';
~~~~~~~~~~~
Expected behavior
I expect that the types provided for Grid are still exported from @mui/material since is has only been deprecated.
Context
No response
Your environment
npx @mui/envinfo
System:
OS: macOS 14.5
Binaries:
Node: 20.15.0 - ~/.nvm/versions/node/v20.15.0/bin/node
npm: 10.7.0 - ~/.nvm/versions/node/v20.15.0/bin/npm
pnpm: 9.0.6 - /opt/homebrew/bin/pnpm
Browsers:
Chrome: 128.0.6613.120
Edge: Not Found
Safari: 17.5
npmPackages:
@emotion/react: 11.13.3 => 11.13.3
@emotion/styled: 11.13.0 => 11.13.0
@mui/core-downloads-tracker: 6.0.2
@mui/icons-material: 6.0.2 => 6.0.2
@mui/material: 6.0.2 => 6.0.2
@mui/private-theming: 6.0.2
@mui/styled-engine: 6.0.2
@mui/system: 6.0.2 => 6.0.2
@mui/types: 7.2.16
@mui/utils: 6.0.2 => 6.0.2
@mui/x-date-pickers: 7.16.0 => 7.16.0
@mui/x-internals: 7.16.0
@types/react: 18.3.5 => 18.3.5
react: 18.3.1 => 18.3.1
react-dom: 18.3.1 => 18.3.1
typescript: 5.6.2 => 5.6.2
Search keywords: GridProps
Metadata
Metadata
Assignees
Labels
Projects
Status