Skip to content

ERROR in Flow validation #3816

@ghost

Description

I'm creating a react-select component as follows:
<Select options={this.days} onChange={this.handleSelect} className={col-4} placeholder={Day} />

When it using it with flow, im getting the following two errors:

ERROR in Flow validation
Error -- node_modules/react-select/src/Select.js:446:23
Cannot assign defaultComponents(...) to this.components because:

  • property children is missing in props [1] but exists in object type [2] in property Menu.
  • property innerRef is missing in props [1] but exists in object type [2] in property Menu.

Error -- node_modules/react-select/src/components/Input.js:49:3
All branches are incompatible:

  • Either property selectProps is missing in PropsWithStyles [1].
  • Or property selectProps is missing in object type [2].

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/bug-unconfirmedIssues that describe a bug that hasn't been confirmed by a maintainer yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions