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 package deprecation warning

See original GitHub issue

With 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:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Andaristcommented, Apr 25, 2017

I’ve released updated version. Please let me know if everything is working as expected.

0reactions
MadTiagocommented, Apr 20, 2017

+1

Read more comments on GitHub >

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

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