Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

'Accessing PropTypes via the main React package is deprecated' warning in React 15.5+ #14

Open
claire-kz opened this issue May 8, 2017 · 1 comment

Comments

@claire-kz
Copy link

Getting console warning: 'Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.'

In React 15.5+, there's an external prop-types package. More here: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes

Warning is being thrown from accessing of PropTypes in index.js on line 32.

@maciekmp
Copy link

As you can see this lib do not have any proptypes so it is not from this repo.
https://github.com/kimmobrunfeldt/react-progressbar.js/blob/master/dist/react-progressbar.js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants