React: checker is not a function

前端 未结 12 1410
庸人自扰
庸人自扰 2021-02-04 23:25

I\'m getting this weird warning message in the console for my React app.

Warning: Failed propType: checker is not a function Check the render method of <

12条回答
  •  深忆病人
    2021-02-04 23:39

    A pull request has been merged to the React repo that provides a better feedback for the developer whenever a mistake like this happens again.

    Now, the validation message will look like the following:

    Invalid argument supplied to oneOf, expected an instance of array.

    https://github.com/facebook/react/pull/3963

    This should be part of React 0.14.

提交回复
热议问题