Failed prop type: LoanFormInner: prop type 'loan' is invalid; it must be a function, usually from the 'prop-type' package, but received 'undefined'.
The subtlety is that in loan: PropTypes.object.isRequred, isRequired is spelled wrong. It didn't take me too long to discover the spelling error but the error message didn't really help.
I am curious if you all would be opened to making the error message a little more clear.
a) this repo is airbnb-prop-types; perhaps you meant facebook's prop-types repo?
b) this error message comes from react itself; you'll want to file it there.
I have this as my code:
and received the following error message:
Failed prop type: LoanFormInner: prop type 'loan' is invalid; it must be a function, usually from the 'prop-type' package, but received 'undefined'.
The subtlety is that in
loan: PropTypes.object.isRequred
,isRequired
is spelled wrong. It didn't take me too long to discover the spelling error but the error message didn't really help.I am curious if you all would be opened to making the error message a little more clear.