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

examples/material-ui not work #570

Open
xingzheone opened this issue Jul 27, 2022 · 1 comment
Open

examples/material-ui not work #570

xingzheone opened this issue Jul 27, 2022 · 1 comment

Comments

@xingzheone
Copy link

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

@Deraen
Copy link
Member

Deraen commented Aug 25, 2022

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.

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

No branches or pull requests

2 participants