Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

106
Vistas
Javascript import fails mapbox-gl-draw-rotate-mode module

I am trying to import inside my main.js file a function from the module mapbox-gl-draw-rotate-mode with the following statement: import RotateMode from 'mapbox-gl-draw-rotate-mode'. I get this error:

Uncaught TypeError: Failed to resolve module specifier mapbox-gl-draw-rotate-mode. Relative references must start with either /, ./, or ../. when import in javascript

What I tried to do next is to point the import to the js file of the module. The previous error disappear, but since mapbox-gl-draw-rotate-mode has other dependencies (i.e. @turf), I get back a relative reference error.

I previously created a new project with npm, and then installed the module with npm install.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda