question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with crossfilter dependency

See original GitHub issue

Hi there, I have a small problem with running dc example (stock.js). I added the next dependencies to my package.json:

  "dependencies": {
    "colorbrewer": "^1.0.0",
    "dc": "^2.1.1",

After that I got the next error: Uncaught Error: Cannot find module ‘crossfilter’. To fix this issue I changed node_modules/dc/index.js:

d3 = require("d3");
crossfilter = require("crossfilter2");
module.exports = require("./dc");

from crossfilter to crossfilter2. Could you please help me with this issue? What is the proper fix? Or it is a problem with crossfilter ? Thank you for your help in advance.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
gordonwoodhullcommented, Feb 28, 2017

As explained in #1214, this does not work in AMD environments, where this specifies the name of the file instead of the name of the module.

Sorry for the inconvenience - it seems that the only way to make both AMD and Webpack happy is to make http://github.com/crossfilter/crossfilter use the same name for its filename as for its NPM project name.

3reactions
emiguevaracommented, Jan 17, 2017

@gordonwoodhull yes, just tried it now. I can confirm that resolve.alias in webpack solves the issue with yarn and webpack. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Circular dependency blocks cross filter
I have made a unique join key to establish a relationship between agents and pickups, data is coming in no problem and filtered...
Read more >
crossfilter - npm
Start using crossfilter in your project by running `npm i crossfilter`. There are 38 other projects in the npm registry using crossfilter.
Read more >
Filtering issues with dependencies | Atlassian Support
When planning work across multiple streams, filtering issues with dependencies helps to quickly narrow down any potential blockers that need ...
Read more >
Avoiding circular dependency errors in DAX - SQLBI
This article explains the most common causes of the error, “A circular dependency was detected” in Power BI and Analysis Services.
Read more >
Power BI > USERELATIONSHIP Vs. CROSSFILTER
Inkey. INKEY is your solution partner. Our focus is to deliver you in-time intelligent innovative solutions ("key") for the problems in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found