Closed Shmew closed 4 years ago
What? I was certain I tested it. Did they change something again? (Related: #27)
I'll have a look at it.
https://github.com/mui-org/material-ui/issues/17900#issuecomment-543313736 says
Also, as MuiThemeProvider is no longer documented since v4.0.0, we might as well encourage
ThemeProvider
instead.
Do you know where this ThemeProvider
is and how to import it?
Nevermind, I found it: https://material-ui.com/styles/api/#themeprovider
The correct import would be:
import "ThemeProvider" "@material-ui/core/styles"
My mistake. I'll fix it.
Will be released shortly as 0.8.1.
Ah, didn't know they were making that change. Thanks!
Import statement was still broken in 0.8.1, releasing fix in 0.8.2.
Mui.themeProvider is currently not functioning, as it fails to import.
The generated code is here
The relevant section of their export in the index.d.ts file:
Returns this error when compiling: