ReactInlineEdit
ReactInlineEdit copied to clipboard
TypeError: Cannot read property 'string' of undefined
Support for React 16. Proptype is deprecated I think we need to add prop-types library instead
Hi I ran into this issue to. Has there been a fix yet?
Hi,
Error is coming from here:
InlineEdit.propTypes = {
text: _react2.default.PropTypes.string.isRequired,
paramName: _react2.default.PropTypes.string.isRequired,
where PropTypes of string is undefined. Is there a workaround?
@benji011 checkout this PR(https://github.com/kaivi/ReactInlineEdit/pull/41). He has made necessary changes. Fork the project and add those changes to use.
This is because proptypes is no longer a part of react as at v16. The project should npm i react-proptypes and use that instead.