You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using @mui/material 5.1.0, and installed newest version of mui-rte (2.0.1)
Getting this error when trying to render the editor TypeError: theme.spacing is not a function. I am wrapping the editor to theme provider, but still no luck. But after changing @mui/material back to 5.0.0 it works. Is this a bug in newer versions of the package or what?
The text was updated successfully, but these errors were encountered:
Karelus
changed the title
mui-rte not compatible with @mui/material 5.0.0 onwards?
mui-rte 2.0.1 not compatible with versions after @mui/material 5.0.0 and onwards?
Nov 19, 2021
Ok it seems that I was importing ThemeProvider incorrectly. For me at least, it worked when I switched the import from import { ThemeProvider } from '@mui/material/styles'
to import { ThemeProvider } from '@mui/styles'
Docs. suggested to import it from @mui/material/styles which didn't work for me. Just curious if others have had the same problem.
Checklist
Description
I'm using @mui/material 5.1.0, and installed newest version of mui-rte (2.0.1)
Getting this error when trying to render the editor
TypeError: theme.spacing is not a function
. I am wrapping the editor to theme provider, but still no luck. But after changing @mui/material back to 5.0.0 it works. Is this a bug in newer versions of the package or what?The text was updated successfully, but these errors were encountered: