this error appears in Firefox (56.0) when trying to run (d3.js v4):
svg = svg.call(d3.zoom().on("zoom", zoomed)).append("g"); or .call(d3.drag()...
in Lightning component.
I found posts about the same issue in very old versions of Firefox.
Also it works in Chrome