accounts-material-ui
accounts-material-ui copied to clipboard
Material.ui 0.17.1 compatibility
I'm having a list of error messahes when loading <Accounts.ui.LoginForm />:
- Warning: Failed prop type: Invalid prop
requiredof typestringsupplied toTextField, expectedboolean. in TextField - Warning: Unknown props
floatingLabelText,hintText,fullWidthontag. Remove these props from the element.- Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components).
- Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in.
I've double checked that Accounts.ui.LoginForm is actually imported so the last error is not straightly connected to initial import.
The first error ocuurs apparently because material.ui TextField expects boolean required, while in package code string is passed (main.jsx, 136):
<TextField floatingLabelText={label} hintText={hint} onChange={onChange} fullWidth={true} defaultValue={defaultValue} name={id} type={type} ref={(ref) => this.input = ref} required={required ? "required" : ""} autoCapitalize={type == 'email' ? 'none' : false} autoCorrect="off"/>
I'll have a look into it! ;)