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

208
Views
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
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!