Redux-form-material-ui: required prop 'fields' not specified using example code

Created on 28 Oct 2016  路  3Comments  路  Source: erikras/redux-form-material-ui

Hi, I'm getting this error:
propType: Required prop fields was not specified in ReduxForm(CreateIncident). Check the render method of Connect(ReduxForm(CreateIncident))
from purely copying and pasting the example code into a class called 'CreateIncident'
Anyone have any idea why this error is being thrown? I assumed the component "Field" was what was specifying the field prop? Thanks

Most helpful comment

maybe a mismatch of versions / incomplete migration? redux-form v5 passed the fields array around: http://redux-form.com/6.4.3/docs/MigrationGuide.md/

All 3 comments

maybe a mismatch of versions / incomplete migration? redux-form v5 passed the fields array around: http://redux-form.com/6.4.3/docs/MigrationGuide.md/

Aah yes that was it thanks a lot!

sweet! glad to help - wanna close the issue?

Was this page helpful?
0 / 5 - 0 ratings