PropTypes package deprecation warning
See original GitHub issueWith React 15.5, we now see the following console warning:
Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
Here’s an example of how enzyme
migrated: https://github.com/airbnb/enzyme/pull/876
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:5 (1 by maintainers)
Top Results From Across the Web
isDeprecated type in PropTypes · Issue #156 - GitHub
The issue, though, is that a deprecation warning and a propType warning are the same thing: a failure (because it logs to the...
Read more >How to find cause of Warning: PropTypes has been moved to ...
React deprecated the usage of propTypes from their main package so you can't use React.PropTypes . When you use React.PropTypes it gives you ......
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 React ......
Read more >Warning: Accessing PropTypes via the main React package is ...
What is this error? Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead. content.js:5025.
Read more >[Solved]-Accessing PropTypes via the main React package is ...
Since the release of React v15.5.0 React.PropTypes is deprecated and has moved to another library. You should use npm install prop-types and use...
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 Free
Top 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
I’ve released updated version. Please let me know if everything is working as expected.
+1