PropTypes is deprecated in React 15.5
See original GitHub issueI’m using redux-form 6.6.2 with react 15.5.4 and I’m getting warnings about deprecation of React.PropTypes
(https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes):
Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
I’m getting the warning in https://github.com/erikras/redux-form/blob/master/src/Form.js#L22 but I’m not sure if it is used elsewhere.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to fix React 15.5.3 PropTypes deprecated warning when ...
Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead. I have already follow the ...
Read more >PropTypes deprecated warnings with React 15.5.0 #75 - GitHub
Hi, any plan to fix the warning with React 15.5.0: Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types ......
Read more >Don't Call PropTypes Warning - React
In this case, ThirdPartyPropTypes.deprecated is a wrapper calling PropTypes.bool . This pattern by itself is fine, but triggers a false positive because ...
Read more >React.PropTypes Is Dead, Long Live PropTypes in React
As of React v15.5 PropTypes are deprecated in the React package and have been given a package of their own. Change is an...
Read more >Reactjs – How to fix React 15.5.3 PropTypes deprecated warning ...
At latest React 15.5.3 package, it appears following warnings: Warning: Accessing PropTypes via the main React package is deprecated.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fix published in
v6.6.3
.This was fixed by #2800. Will publish soon.