redux-tower icon indicating copy to clipboard operation
redux-tower copied to clipboard

Error on referring `react.PropTypes` on `0.0.6` package

Open gunyarakun opened this issue 7 years ago • 2 comments

With [email protected], Uncaught TypeError: Cannot read property 'string' of undefined occurs because lib/react/link.js in the released 0.0.6 package from npm includes these lines which uses react.PropTypes.

Link.propTypes = {
  to: _react.PropTypes.string,
  href: _react.PropTypes.string,
  external: _react.PropTypes.bool,
  target: _react.PropTypes.string,
  className: _react.PropTypes.string,
  onClick: _react.PropTypes.func
};

I think separating the package prop-types from react at React v15.5 would cause this issue. https://reactjs.org/docs/typechecking-with-proptypes.html

Rebuilding redux-tower from the latest source codes resolves the problem in my environment.

gunyarakun avatar Nov 05 '17 02:11 gunyarakun

@gunyarakun Thanks for giving comment. I'll rebuild and release within few days.

kuy avatar Nov 10 '17 03:11 kuy

This was solved?

goncy avatar Jun 30 '18 01:06 goncy