Skip to content

requireJS can't find crossfilter2Β #1304

@gordonwoodhull

Description

@gordonwoodhull

I'm going to file this issue preemptively, because we are changing the way dc.js loads crossfilter and it is going to break requireJS and other AMD package loaders.

https://github.com/crossfilter/crossfilter, the community fork of crossfilter, has a different filename (crossfilter.js) from its module name (crossfilter2). But requireJS (and presumably other AMD loaders) assumes that the module name will be the same as the filename.

From dc.js 2.0.3 and 2.1.5 onward, index.js and the UMD footer of dc.js will refer to the module name crossfilter2 instead of crossfilter.

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-paths
http://requirejs.org/docs/api.html#config-map

For further discussion, please see crossfilter/crossfilter#75

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions