I try integrate react-d3-map on my react project. I installed package using npm
npm install --save react-d3-map
And import on my React component
var Map = require('react-d3-map').Map;
var PolygonGroup = require('react-d3-map').PolygonGroup;
When I try to use Map components, I have the following error:
× TypeError: Cannot read property 'func' of undefined
(anonymous function)
node_modules/react-d3-map/lib/map.js:139
, {
key: 'childContextTypes',
value: {
geoPath: _react2['default'].PropTypes.func.isRequired,
projection: _react2['default'].PropTypes.func.isRequired
},
enumerable: true