willowtreeapps / react-formable

React Forms
25 stars 5 forks source link

Warning: Failed propType: Invalid prop `fieldErrors` of type `array` supplied to `Fieldset`, expected `object`. Check the render method of `Form`. #79

Open killerswan opened 8 years ago

killerswan commented 8 years ago

This warning message is a puzzle to me:

Warning: Failed propType: Invalid prop `fieldErrors` of type `array` supplied to `Fieldset`, expected `object`. Check the render method of `Form`.

Not sure what's wrong here:

const Mine= React.createClass({
    render() {
        return <Form ref='editor_form' >
            <Fieldset name='set1' >
                <Input name='val1' type='text' />
            </Fieldset>
        </Form>;
    }
});

So do you think this is actually a bug? I've currently got the following set up:

  "dependencies": {
    "commonmark": "^0.25.1",
    "jquery": "^1.11.2",
    "lodash": "^3.10.1",
    "react": "^0.14.8",
    "react-dom": "^0.14.8",
    "react-formable": "^0.7.1",
    "reactable": "^0.11.5"
  },
  "devDependencies": {
    "auto-reload-brunch": "^2.0.0",
    "babel-brunch": "^6.0.4",
    "babel-preset-es2015": "~6.3.13",
    "babel-preset-react": "~6.3.13",
    "brunch": "^2.8.0",
    "clean-css-brunch": "^2.0.0",
    "css-brunch": "^2.6.1",
    "javascript-brunch": "^2.0.0",
    "uglify-js-brunch": "^2.0.1"
  }

Otherwise, if I'm the only one seeing this, any idea what I've missed? :scream_cat:

kaw2k commented 8 years ago

This cropped up for us as well. I am going to hold off on fixing this particular issue until v1 hits as it should address this (and more). Fingers crossed we should have an alpha for v1 in the next two weeks.