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

397
Views
Cambiar de CDN a NPM para Google Maps JavaScript MarkerClusterer. ¿Cómo?

Actualmente estoy cargando Google Maps JavaScript MarkerClusterer desde CDN. Estoy tratando de cambiar a la versión NPM (para obtener algunas comprobaciones de Typescript en mis archivos JavaScript), pero no entiendo cómo. La documentación parece asumir que entiendo cómo. Simplemente dice que debo usar esta línea después de instalar la versión de NPM:

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

Pero Google Chrome no está de acuerdo y dice

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

¿Qué puedo hacer para resolver este error?

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

0

necesitas instalar

 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!