old-examples icon indicating copy to clipboard operation
old-examples copied to clipboard

Error: Cannot find module "react/addons"

Open strarsis opened this issue 8 years ago • 1 comments

Trying to get the x_simple map demo running, I get this build error:

Error: Cannot find module "react/addons"

strarsis avatar Aug 17 '17 13:08 strarsis

Replace 'react/addons' with 'react' and import PropTypes seperately from 'prop-types' npm. It has been moved off react since 15.x

ref. https://reactjs.org/docs/typechecking-with-proptypes.html

anianroid avatar Dec 08 '17 11:12 anianroid