Bug report: forcing dependency in Firefox

I add a dummy reference to d3 to avoid errors in Firefox, see the chart cell here, its working fine without the hack in Chrome.

Hey Fabian - thanks for trying out Observable!

This is a case of a module (c3) having an implicit dependency on another (d3). I totally see how the way that this error message is displayed is confusing - we’ll see if there’s a way to make it clearer.

To handle this in all browsers without any instability, combine the two cells into one, so that you can guarantee their order:

c3 = {
  await require("https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.js");
  return require("https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.18/c3.js");
}

Hope that helps! That cell essentially loads up d3 as a window global by including d3, and then the c3 module expects for that global to be around.