Skip to content

PropTypes as Flow types, Failed prop type warning only reported in the terminal #161

@inside

Description

@inside

Hi,

I'm using the roc-package-web-app-react v1.0.0-beta.9. I have installed babel-plugin-flow-react-proptypes v0.21.0 and have this in my package.json:

  "babel": {
    "env": {
      "development": {
        "plugins": [
          "flow-react-proptypes"
        ]
      }
    }
  }

In the following screenshot, I use PropTypes as Flow types and the warning only appears in the terminal.

proptypes-as-flowtypes-no-browser-warning

But in that screenshot, I use react PropTypes and I am warned both in the terminal and in the browser viewport and console.

react-proptypes-with-a-browser-warning

Is it possible to use PropTypes as Flow types and be warned both in the terminal and browser?

Thanks for your input.
Best,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions