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.

TypeError: checker is not a function at validate

See original GitHub issue

somehow a weird warning is printed to the console when i have this property

  propTypes:
    links:       React.PropTypes.oneOfType(
      React.PropTypes.object
      React.PropTypes.arrayOf(React.PropTypes.object)
    )

the checkPropTypes() produces

error = TypeError: checker is not a function at validate

at

error = propTypes[propName](props, propName, componentName, location);

and this will print this warning in the console

Warning: Failed propType: checker is not a function Check the render method of `xxx`.

looks like a bug to me … using React v0.13.3 here

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
aljones15commented, Mar 30, 2018

just for future reference you can also get this error if a PropType is left incomplete ie.

country: PropTypes

0reactions
gaearoncommented, Oct 27, 2016

Closing as not a common issue, and caused by wrong usage. If it comes up often, feel free to send a PR that adds better warnings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React: checker is not a function - Stack Overflow
Show activity on this post. I'm getting this weird warning message in the console for my React app. Warning: Failed propType: checker is...
Read more >
Uncaught TypeError: $(...).validate is not a function - W3schools
Uncaught TypeError: $(…).validate is not a function. javascript validate is not a function problem. Functions that arent need to load at the beggining...
Read more >
How to resolve the TypeError n(…).valid is not a function | jQuery
“TypeError: n(…).valid is not a function” script error is raised, if the jQuery validation script is not referred in your application. The JQuery...
Read more >
$(...).validate is not a function. Client side validation - MSDN
Getting this error trying to use client side validation. This doesn't do any validation. I did an inspect on the page and get...
Read more >
'X' is not a function TypeError in React [Solved] | bobbyhadz
The React.js Uncaught TypeError: X is not a function occurs when we try to call a value that is not a function as...
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