Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1189158

Bug#1064824: node-d3: fails to export map and other functions

From Nilesh Patra <nilesh@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1064824: node-d3: fails to export map and other functions
Date 2024-03-05 13:20 +0100
Message-ID <IeBW1-ezZd-1@gated-at.bofh.it> (permalink)
References <IcA81-dii9-3@gated-at.bofh.it> <Iengm-eqNC-5@gated-at.bofh.it> <Ieo2J-erjq-9@gated-at.bofh.it> <IbFCN-cJbt-9@gated-at.bofh.it> <Ieo2J-erjq-9@gated-at.bofh.it>
Organization The Debian Project

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Mon, Mar 04, 2024 at 09:18:01PM +0000, Julian Gilbey wrote:
> index.js → dist/d3.js...
> (!) Conflicting re-exports
> "index.js" re-exports "map" from both "../../../usr/share/nodejs/d3-array/src/index.js" and "../../../usr/share/nodejs/d3-collection/src/index.js" (will be ignored).
> created dist/d3.js in 1.9s
> 
> index.js → dist/d3.min.js...
> (!) Conflicting re-exports
> "index.js" re-exports "map" from both "../../../usr/share/nodejs/d3-array/src/index.js" and "../../../usr/share/nodejs/d3-collection/src/index.js" (will be ignored).
> created dist/d3.min.js in 4.2s
> -----

I have pushed a commit to salsa that hopefully fixes this - can you please try with the same and see if that
helps you somewhat?

> So it's specifically "map" that is problematic, and I just happen to
> have stumbled upon it: d3 v5 depends on d3-array version 1, but the
> version of node-d3-array in unstable is 3.2.0+~cs5.0.6-2, and this is
> causing the conflict.
> 
> I don't know the best way to fix this.  node-d3-array version was
> upgraded from 1.2.4 to 3.x about two years ago, so d3 would have had
> this bug since then, but I'm the first one to stumble upon it :-/
>
> Perhaps we could package node-d3-array-1 (version 1.2.4) and have
> node-d3 build-depends on that?

I tried to embed it and realised it is creating an unholy mess. I got it working eventually
but it can open a can of worms sometime later. Maybe packaging the older version
would be the way to go if my fix above does not work.

I've added yadd to the thread for more qualified advice.

Best,
Nilesh

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Bug#1064824: libjs-d3-tip: TypeError: h.map is not a function Julian Gilbey <jdg@debian.org> - 2024-02-26 10:40 +0100
  Bug#1064824: libjs-d3-tip: TypeError: h.map is not a function Julian Gilbey <jdg@debian.org> - 2024-02-26 11:20 +0100
    Bug#1064824: libjs-d3-tip: TypeError: h.map is not a function Petter Reinholdtsen <pere@debian.org> - 2024-02-26 12:20 +0100
      Bug#1064824: libjs-d3-tip: TypeError: h.map is not a function Julian Gilbey <jdg@debian.org> - 2024-02-26 17:40 +0100
        Bug#1064824: node-d3: fails to export map and other functions Julian Gilbey <jdg@debian.org> - 2024-02-28 23:00 +0100
  Bug#1064824: node-d3: fails to export map and other functions Julian Gilbey <jdg@debian.org> - 2024-03-04 23:00 +0100
  Bug#1064824: node-d3: fails to export map and other functions Nilesh Patra <nilesh@debian.org> - 2024-03-05 13:20 +0100

csiph-web