4

I'm getting the following warning due to a third-party package:

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

As the React documentation recommends (If it's not a library you wrote, you can file an issue against it), there's already a PR done addressing the issue.

In the meantime, is there anything I can do to suppress the warning?

React native apparantly has a method called console.ignoredYellowBox to which you can define a string to hide in the console. Perhaps there's something similar for React (web)?

Community
  • 1
  • 1
Fellow Stranger
  • 32,129
  • 35
  • 168
  • 232
  • 1
    It's over one year and there is still not a single answer. We are doomed to see these warnings. – TMG Sep 07 '18 at 07:06

0 Answers0