-
Notifications
You must be signed in to change notification settings - Fork 171
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
Broken @material-ui dependency? #6
Comments
Sorry for the trouble, does the import come from the auto-import feature of your IDE? -import { makeStyles } from "@material-ui/core/styles"
-import createMuiTheme from "@material-ui/core/styles/createMuiTheme"
-import MuiThemeProvider from "@material-ui/core/styles/MuiThemeProvider"
+import {
+ makeStyles,
+ createMuiTheme,
+ MuiThemeProvider,
+} from "@material-ui/core/styles" These are private imports. |
Edited: I guess the fix for your Theme would work. |
@ArcticTee Sorry, it was a question for the author of the package. This could be a potential workaround: mui/material-ui#17900 (comment). |
@oliviertassinari Sorry, confused you with the author or contributors of this package😂 |
Your best workaround is to freeze @material-ui/core to v4.5.0. |
I solved it by using
in my |
@ArcticTee thanks for reporting, assigning myself to fix this issue. |
Notice that Material-UI v4.5.2 will soon come out with a warning instead of an exception for the import of this private module. |
fixed in 0.1.28 |
Hi, I am trying to include your Component in a React project of mine.
Running "@material-ui/core": "^4.3.1",
Getting the following errors:
When I go back to a Version 3.9.3 of @material-ui the MuiThemeProvider is found.
But the @material-ui/lab/Slider dependency from material-survey will be lost.
Can't resolve '@material-ui/lab/Slider' in '.../node_modules/material-survey/components/RatingQuestion'
Or it may be related to this
Any suggestions?
The text was updated successfully, but these errors were encountered: