Redux-form-material-ui: TimePicker not working

Created on 3 Sep 2016  路  5Comments  路  Source: erikras/redux-form-material-ui

I have a form with one TimePicker field, like so:

<form>
    <Field
        name='start_time'
        component={TimePicker}
    />
</form>

And I get this warning:
Warning: Failed prop type: Required prop component was not specified in Field.

Followed by this error:
Uncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of ConnectedField.

If I change the component prop to DatePicker, it works fine.

Most helpful comment

Seems that npm install for version 4.0.1 does not include TimePicker but it is in the GitHub repo.

All 5 comments

Seems that npm install for version 4.0.1 does not include TimePicker but it is in the GitHub repo.

@erikras Please publish to npm.

@erikras Is there any outstanding work that needs to be done before this can be published?

I am happy to contribute.

how to fix this problem before next version release?

Fix published in v4.1.0.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EssamTarik picture EssamTarik  路  3Comments

rspicer picture rspicer  路  7Comments

aislanmaia picture aislanmaia  路  6Comments

bertdeterd picture bertdeterd  路  3Comments

j18ter picture j18ter  路  3Comments