accounts-material-ui icon indicating copy to clipboard operation
accounts-material-ui copied to clipboard

Material.ui 0.17.1 compatibility

Open Kshatra opened this issue 8 years ago • 1 comments

I'm having a list of error messahes when loading <Accounts.ui.LoginForm />:

  • Warning: Failed prop type: Invalid prop required of type string supplied to TextField, expected boolean. in TextField
  • Warning: Unknown props floatingLabelText, hintText, fullWidth on
    tag. 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"/>
    

Kshatra avatar Mar 17 '17 14:03 Kshatra

I'll have a look into it! ;)

PolGuixe avatar Mar 20 '17 23:03 PolGuixe