-
Notifications
You must be signed in to change notification settings - Fork 16
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
Material-UI 12.1 #15
Comments
@mbrookes of course i can. As you know, MUI have breaking changes since 0.12.x, so i need double check it before update to new ver |
Thanks for the quick response. Fingers crossed there are no major problems... |
+1 |
Actually, for me, the fix I need is in 0.11.1 (calendar), so if 12.x does prove problematic and is going to take a bit longer, 11.1 would be good. 👌 |
@mrphu3074 - I got MUI 0.12.1 working (via NPM etc), but as you hinted, if you update the package, it will break peoples apps. I guess either a note after Even though 0.12.x has a default theme, there are React warnings unless it's passed as context. In a nutshell, after upgrading to MUI 0.12.x you have to: Remove:
(App crashes otherwise.) And change
(React warnings otherwise) See: mui/material-ui#1754 |
@mbrookes i can make mui 0.12.1 work well with meteor, but i having trouble with npm ERR! Error: Problems were encountered
npm ERR! Please correct and try again.
npm ERR! extraneous: fbjs@0.2.1 /Users/nguyenphu/Workspace/Sanbox/untitled/packages/npm-container/.npm/package-new-x8eodm/node_modules/fbjs
npm ERR! extraneous: react-dom@0.14.0-rc1 /Users/nguyenphu/Workspace/Sanbox/untitled/packages/npm-container/.npm/package-new-x8eodm/node_modules/react-dom do you have any idea? |
I think the problem is React 0.14.0 which pulls in an incompatible version of I'm using React 0.13.3 via the official meteor package. I didn't have to add to
|
@mrphu3074 --> @mbrookes is right... material-ui is getting i also found a couple of other interesting things here. in this issue on the react-packages repo, i referenced my IN ADDITION you cannot use the i've posted my example repo which works with meteor 1.2.0.2 and material-ui 0.12.1 meteor-material-ui-example repo |
hi all, i completed upgrade mui to 0.12.1 without errors and compatible with meteor > 1.2.x . This is my way:
Using injectTapEventPlugin();
var {
AppCanvas,
AppBar,
Styles,
RaisedButton,
DatePicker
} = MUI;
var { ThemeManager, LightRawTheme } = Styles;
var App = React.createClass({
childContextTypes: {
muiTheme: React.PropTypes.object
},
getChildContext() {
return {
muiTheme: ThemeManager.getMuiTheme(LightRawTheme)
};
},
render: function () {
return (
<AppCanvas>
<AppBar title="izziLab"/>
<div style={{padding: '80px',}}>
<RaisedButton primary={true} label="Tap" />
<br/>
<DatePicker hintText="Portrait Dialog" />
<br/>
<DatePicker
hintText="Landscape Dialog"
mode="landscape"/>
</div>
</AppCanvas>
);
}
});
if (Meteor.isClient) {
Meteor.startup(() => React.render(<App/>, document.body));
}
many thanks all and @rkstar |
The issue now isn't so much MUI compatibility with Meteor - that we know works, but rather backwards compatibility of this package with client code using the old syntax. I can't look at the source (on mobile), but does meteor let packages emit warnings on update? |
yes, meteor will notice to update. There is no new syntax in new mui version, it only change the way control theme. |
Except that if you don't update your client code, it will break. That's new syntax in my book. But that's just semantics. 😄 Anyway, glad to hear it issues a warning / instructions on how to update the Theme code. Nice work! |
is released: https://www.npmjs.com/package/material-ui
Could you update please? Thanks!
The text was updated successfully, but these errors were encountered: