Skip to content

× TypeError: Cannot read property 'func' of undefined #30

@luli-isa

Description

@luli-isa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions