Hi,
first off this is a great lib and I tend to use it whenever I use react!
however, I ran into this issue when building my app using the new material-ui.
my app is the following
but is rendered as
The issue is that in order to use themes the usage of the "MuiThemeProvider" is needed, when debugging it I noticed that the provider's render method is:
I noticed that there were several issues regarding children but I couldn't find any solution that fixed my problem, If there's anything I can help with regarding this issue let me know
Thanks!
Edit: is seems that the issue is with uglifyjs-webpack-plugin, I'm trying to figure out which option is messing with it...
Edit2:https://github.com/developit/preact/issues/961 solution was to set
Hi, first off this is a great lib and I tend to use it whenever I use react! however, I ran into this issue when building my app using the new material-ui. my app is the following
but is rendered as
The issue is that in order to use themes the usage of the "MuiThemeProvider" is needed, when debugging it I noticed that the provider's render method is:
code here: https://github.com/mui-org/material-ui/blob/v1-beta/src/styles/MuiThemeProvider.js when I monkey-patched it to return this.props.children[0] it worked, how can this issue be resolved?
this is my package json
and alias section in webpack:
I noticed that there were several issues regarding children but I couldn't find any solution that fixed my problem, If there's anything I can help with regarding this issue let me know Thanks!
Edit: is seems that the issue is with
uglifyjs-webpack-plugin
, I'm trying to figure out which option is messing with it... Edit2:https://github.com/developit/preact/issues/961 solution was to setand it worked!