-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[MUI v7] "@mui/material/styles" has no exported member named 'ThemeProviderProps' #45700
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
Comments
While we check this, you can import it from import { ThemeProviderProps } from '@mui/material/styles/ThemeProvider'; |
@mtr1990 looks like |
This will not work with ESM, no? We need to export it from @mui/material/styles. |
Currently I am configuring in
=> This doesn't work in MUI v7 but works in MUI v6 When I changed the config in => It works. The question here is Same as other import types: - import type { CommonColors } from '@mui/material/styles/createPalette';
- import type { Channels, PaletteColor } from '@mui/material/styles/createPalette';
... => Means the sub items imported after |
As @mnajdova said, we need to export it from |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. |
@mtr1990 the fix is merged and it will land in the next release. |
Steps to reproduce
Missing ThemeProviderProps exported in '@mui/material/styles'
https://stackblitz.com/edit/github-41iztrt1?file=src%2FThemeProvider.tsx
Current behavior
This works in MUI v6. But missing in MUI v7
in
packages/mui-material/src/styles/index.d.ts
Expected behavior
Context
No response
Your environment
No response
Search keywords: ThemeProviderProps
The text was updated successfully, but these errors were encountered: