React-custom-scrollbars: Calling PropTypes validators directly is not supported by the `prop-types`

Created on 25 Apr 2017  路  2Comments  路  Source: malte-wessel/react-custom-scrollbars

Warning: Failed prop type: Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types
    in Scrollbars (created by Picker)
<Scrollbars ref="scroll" className="sscroll" onScroll={this.handleScroll.bind(this)}>
</Scrollbars>

Most helpful comment

Please see https://github.com/reactjs/prop-types/issues/38.

This was a false positive caused by production version of prop-types generating a mistaken warning when development version of React is calling it.

It is fixed in [email protected].

You might need to rebuild the UMD bundle of the component that depends on prop-types (probably this repo) to see the changes.

All 2 comments

Please see https://github.com/reactjs/prop-types/issues/38.

This was a false positive caused by production version of prop-types generating a mistaken warning when development version of React is calling it.

It is fixed in [email protected].

You might need to rebuild the UMD bundle of the component that depends on prop-types (probably this repo) to see the changes.

thanks @gaearon I added [email protected] in 4.1.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

simonkberg picture simonkberg  路  3Comments

strobox picture strobox  路  4Comments

webchaz picture webchaz  路  3Comments

nindavidw picture nindavidw  路  4Comments

danmo picture danmo  路  4Comments