googlemaps / googlemaps/js-markerwithlabel
Error on initialisation: Uncaught TypeError: Class constructors cannot be invoked without 'new'
Open
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
Assessment
This issue has not been assessed yet.