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

215
Vistas
In Tampermonkey, why does @require work for some scripts but not others

I'm trying to write a userscript using TamperMonkey on Chrome.

I want to use https://github.com/Fil/d3-geo-voronoi so I put this in my script header:

// @require        https://cdn.jsdelivr.net/npm/d3@7.0.0/dist/d3.min.js
// @require        https://cdn.jsdelivr.net/npm/d3-delaunay@6.0.2/dist/d3-delaunay.min.js
// @require        https://cdn.jsdelivr.net/npm/d3-geo-voronoi@1.6.0/dist/d3-geo-voronoi.min.js

d3 and d3-delaunay are imported correctly but for some reason, d3-geo-voronoi is not. I can see in the chrome dev tools sources tab that tampermonkey has included all three scripts but the Chrome dev tools console shows that d3 and d3.Delaunay are defined but d3.geoVoronoi is not.

If I copy and paste the contents of https://cdn.jsdelivr.net/npm/d3-geo-voronoi@1.6.0/dist/d3-geo-voronoi.min.js into the console, d3.geoVoronoi is defined and works as I would expect.

Any idea what I'm doing wrong?

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