[Pkg-javascript-devel] Bug#1064824: libjs-d3-tip: TypeError: h.map is not a function

Julian Gilbey jdg at debian.org
Mon Feb 26 10:15:47 GMT 2024


On Mon, Feb 26, 2024 at 09:32:44AM +0000, Julian Gilbey wrote:
> Package: libjs-d3-tip
> Version: 0.7.1-5
> Severity: important
> 
> I have tried to use d3-tip.min.js for a website in another package,
> but it fails with the error: "Uncaught (in promise) TypeError: h.map
> is not a function".  This comes from the index.js line "d3.map({
> ...".  Presumably d3 no longer ships a map function.  In more recent
> versions of d3-tip (which is now archived), this has been resolved by
> importing "map" from d3-collections.  So maybe the best way to fix
> this bug is to upgrade the package.

Hi Petter,

I see you've updated the version in salsa but not yet released it; is
there any reason not to do so?  Obviously, there are some missing
(build-)dependencies (d3-collection, d3-selection, rollup), but those
can be added without trouble.  If it's OK, I can do that and release
it.

Best wishes,

   Julian



More information about the Pkg-javascript-devel mailing list