last day (14 days later) » 

9:44 AM
0
A: Cannot upgrade Material-Ui Version from 0.14.4 to 0.15

EdgesoftYou need to wrap your app Component. import getMuiTheme from 'material-ui/styles/getMuiTheme' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' <MuiThemeProvider muiTheme={getMuiTheme()}><App /></MuiThemeProvider> Also look here for more information https://github.com/callema...

 
This is an equivalent of what I've done. So, always the same error :(
 
@Jean-YvesDELMOTTE Can you complement your first post with the app wrapper and how the Dialog component looks?
this.context.muiTheme is undefined. Are you sure that you wrapped the Dialog?
 
I updated my post with the app wrapper. Concerning the Dialog component, it is a basic one as you can find in the docs, it was working under 0.14.4
Do I have to do something particular to wrap the Dialogs in the 0.15.0 ? I didn't see anything in the documentation.
 
What React version are you using?
15.0.2 or 0.14.x?
 
I'm using React version 15.0.2
 
9:48 AM
Hummm, seems like this.context is an empty object.
 
yes, you ask me if I were sure I wrapper the Dialog. I think yes, but is there something special to do ?
 
No, I think you done it right. have you read this?
https://github.com/callemall/material-ui/issues/4021
 
yep, it seems that the problem is the same as mine, but I still don't know how to fix it
 
Nope, sorry. I will try and find some answers.
 
10:08 AM
Does this help?
https://github.com/facebook/react/issues/2517
 
10:52 AM
Found the solution. Check the answer
 

last day (14 days later) »