Skip to content
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

FormControlLabel produces error 'Element type is invalid:' #258

Open
aikidoshi opened this issue Jun 14, 2018 · 1 comment
Open

FormControlLabel produces error 'Element type is invalid:' #258

aikidoshi opened this issue Jun 14, 2018 · 1 comment

Comments

@aikidoshi
Copy link

When used as per the website example thusly:

import {
    Checkbox,
    RadioGroup,
    Select,
    TextField,
    Switch,
    FormControlLabel
} from 'redux-form-material-ui'


<FormControlLabel control={<Field name="Solo" component={Checkbox} /> } label="Solo?" />

I get the following 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, or you might have mixed up default and named imports.

@Neo478
Copy link

Neo478 commented Jun 26, 2018

FormControlLabel must be imported from Material Ui like so:

import FormControlLabel from '@material-ui/core/FormControlLabel';

Example needs to be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants