My react project only logging this error(console error) when the service on production level. I don't see the following error on my local, but only on production mode.
Material-UI: the createMuiTheme function was renamed to createTheme. You should use `import { createTheme } from '@material-ui/core/styles'`
I found a few articles saying this only happens when anything above v5 of @material-ui/core
has been used. However, I'm using v4.11.0 of @material-ui/core
which only supports createMuiTheme
. Since the version is below v5
, I reckon the error should not be shown at any point during runtime.
For those who have any clue regarding this issue, please share. Thank you.
Developers - createMuiTheme was deprecated -
MUI requires a minimum version of TypeScript 3.5. Have a look at the Create React App with TypeScript example. The strict mode options are the same that are required for every types package published in the @types/ namespace.
Same goes to me. Probably updated deprecated function name createMuiTheme to createTheme used in ThemeProvider.
https://github.com/elyra-ai/elyra/pull/1885
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With