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.

PropType warnings with React 15.5

See original GitHub issue

4.1.1 Router component shows the following warnings with React 15.5.4:

Warning: Failed prop type: Calling PropTypes validators directly is not supported by the 'prop-types' package. Use PropTypes.checkPropTypes() to call them.

Warning: Failed context type: Calling PropTypes validators directly is not supported by the 'prop-types' package. Use PropTypes.checkPropTypes() to call them.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:11
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
timdorrcommented, Jul 16, 2017

Finally found some time for this. Re-published react-router and react-router-dom as 4.1.2. No changes other than updated bundled deps.

4reactions
timdorrcommented, May 31, 2017

I need to rebuild the UMD release. The version of prop-types was broken for UMD builds when I pushed out 4.1.1. It’s literally just a rebuild and push, no changes needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix React 15.5.3 PropTypes deprecated warning when ...
At latest React 15.5.3 package, it appears following warnings: Warning: Accessing PropTypes via the main React package is deprecated. Use 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.
Read more >
Typechecking With PropTypes - React
In this example, we're using PropTypes.string . When an invalid value is provided for a prop, a warning will be shown in the...
Read more >
How to Use PropTypes in React - freeCodeCamp
Before the release of React 15.5.0, PropTypes were available in the React package, but now we have to add the prop-types library in...
Read more >
Comparing TypeScript and PropTypes in React applications
Since React 15.5, the PropTypes utility is available through the prop-types ... Note that PropTypes does not provide warnings in production ...
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