You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i change the following code in dc.js(line:10707)
define(["d3", "crossfilter"], _dc);
to
define(["d3", "crossfilter2"], _dc);
and error is gone
so is this a bug?
The text was updated successfully, but these errors were encountered:
I presume you're using Webpack. Duplicate of #1214.
It's sort of a bug in the way the community fork of crossfilter is distributed - the package would have to be renamed to match the filename (or vice versa). Currently dc.js is configured to work with AMD, which has a different convention for how modules and filenames should be specified.
See the linked tickets for more details and workarounds.
this breaks requireJS but fixes webpack - since the community fork of
crossfilter has a different package name from its filename, one or the
other packaging system is going to be unhappy.
requireJS users will need to rename crossfilter.js to crossfilter2.js
when copying it into position, or use the requireJS paths or map
configuration options to specify that the filename is different from the
module name.
http://requirejs.org/docs/api.html#config-pathshttp://requirejs.org/docs/api.html#config-mapfixes#1213fixes#1214fixes#1261fixes#1293fixes#1302
breaks #1304!
I installed [email protected] using 'npm install dc'
then
import dc from 'dc'
there is an error: can not load 'crossfilter'
i change the following code in dc.js(line:10707)
define(["d3", "crossfilter"], _dc);
to
define(["d3", "crossfilter2"], _dc);
and error is gone
so is this a bug?
The text was updated successfully, but these errors were encountered: