googlemaps / googlemaps/js-markerwithlabel

Error on initialisation: Uncaught TypeError: Class constructors cannot be invoked without 'new'

Open
#1,045 20 comments 18 reactions 0 assignees View on GitHub
triage me type: bug
Dominant language
TypeScript
Stars
77
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Recently, all attempts to initialise a MarkerWithLabel fail with:

```
index.dev.js:260 Uncaught TypeError: Class constructors cannot be invoked without 'new'
at new MarkerSafe (index.dev.js:260:32)
at new MarkerWithLabel (index.dev.js:292:13)
```

I discovered this issue in our own environment, but the exact same issue occurs in all four of the Examples provided in the GitHub Readme: https://github.com/googlemaps/js-markerwithlabel?tab=readme-ov-file#example

I have tried in Firefox 135.0.1, Edge 133.0.3065.92 and Chrome 134.0.6998.45 on both macos and Windows - all produce the same error.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.