question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PropTypes is deprecated in React 15.5

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
erikrascommented, Apr 13, 2017

Fix published in v6.6.3.

1reaction
erikrascommented, Apr 13, 2017

This was fixed by #2800. Will publish soon.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found