reagent icon indicating copy to clipboard operation
reagent copied to clipboard

examples/material-ui not work

Open xingzheone opened this issue 3 years ago • 1 comments

getStylesCreator.js:38 MUI: The styles argument provided is invalid. You are providing a function without a theme in the context. One of the parent elements needs to use a ThemeProvider. getStylesCreator.js:42 Uncaught TypeError: theme.spacing is not a function

xingzheone avatar Jul 27 '22 06:07 xingzheone

The example works for me with the specific material-ui versions in the repo. I've updated the package.json to use exactly versions, instead of accepting any updates.

If the material-ui upgrade breaks the build, it might be a build tool issue or something on the components that did change. But the example should show the general idea of how the interop works, and I don't have an interest to check if with every minor material-ui update.

Deraen avatar Aug 25 '22 09:08 Deraen