Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

400
Views
Switching from CDN to NPM for Google Maps JavaScript MarkerClusterer. How?

I am currently loading Google Maps JavaScript MarkerClusterer from CDN. I am trying to switch to the NPM version (to get some Typescript checking in my JavaScript files), but I do not understand how. The documentation seems to assume I do understand how. It just says I should use this line after installing the NPM version:

import { MarkerClusterer } from "@googlemaps/markerclusterer";

But Google Chrome disagrees and says

Uncaught TypeError: Failed to resolve module specifier "@googlemaps/markerclusterer". Relative references must start with either "/", "./", or "../".

What can I do to resolve this error?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

you need to install

npm i @googlemaps/markerclusterer -D

https://www.npmjs.com/package/@googlemaps/markerclusterer

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!