googlemaps/js-markerclusterer

Bug: Cannot find name 'Marker'

rbalet opened this issue · 2 comments

rbalet commented

Environment details

  1. OS type and version: MacOS Ventura 13.3.1
  2. Library version and other environment information : 2.1.3

Steps to reproduce

  1. npm i @googlemaps/markerclusterer@latest

Stack trace

node_modules/@googlemaps/markerclusterer/dist/markerclusterer.d.ts:64:25 - error TS2304: Cannot find name 'Marker'.

64     addMarkers(markers: Marker[], noDraw?: boolean): void;
                           ~~~~~~
node_modules/@googlemaps/markerclusterer/dist/markerclusterer.d.ts:65:26 - error TS2304: Cannot find name 'Marker'.

65     removeMarker(marker: Marker, noDraw?: boolean): boolean;
                            ~~~~~~
node_modules/@googlemaps/markerclusterer/dist/markerclusterer.d.ts:66:28 - error TS2304: Cannot find name 'Marker'.

66     removeMarkers(markers: Marker[], noDraw?: boolean): boolean;

Additional

It was working on the v2.0.15

If you would like to upvote the priority of this issue, please comment below or react with 👍 so we can see what is popular when we triage.

@rbalet Thank you for opening this issue. 🙏
Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

Closing this as duplicate. This is being trackedin #617. Please try v2.1.4 that just released, which I think should resolve the issue.