Skip to content

TypeError: Cannot read property 'addLayer' of undefined #2

@brenthmiras

Description

@brenthmiras

When I tried to do the example, I get this error message
`
node_modules/react-leaflet-google-tile-layer/node_modules/react-leaflet/es/MapLayer.js:91
88 | MapLayer.prototype.componentDidMount = function componentDidMount() {
89 | _MapComponent.prototype.componentDidMount.call(this);
90 |

91 | this.layerContainer.addLayer(this.leafletElement);
| ^ 92 | };
`

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