Skip to content
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

mui-rte 2.0.1 not compatible with versions after @mui/material 5.0.0 and onwards? #285

Closed
3 tasks done
Karelus opened this issue Nov 19, 2021 · 1 comment
Closed
3 tasks done

Comments

@Karelus
Copy link

Karelus commented Nov 19, 2021

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?

@Karelus 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
@Karelus
Copy link
Author

Karelus commented Nov 22, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant