ivanvanderbyl / ember-d3

Loads the latest D3 packages into Ember CLI so you can use them in your app
MIT License
68 stars 37 forks source link

auto adding transitive d3 dependencies doesn't work? #38

Open nag5000 opened 7 years ago

nag5000 commented 7 years ago

Error: Could not find module d3-array imported from d3-scale

From README.md: Note: Even though you only add d3-scale, it has a few transitive d3 dependencies. These are added to your project automatically.

My config:

// ember: 2.13.3
// ember-d3: 0.3.4
// d3: 4.9.1

'ember-d3': {
  only: ['d3-scale']
}
ivanvanderbyl commented 7 years ago

@nagits right now this is a known defect. We're working on supporting this in the upcoming beta, however, right now I recommend you add the dependencies for d3-scale manually.

["d3-array", "d3-collection", "d3-color", "d3-format", "d3-interpolate", "d3-time", "d3-time-format"]

ivanvanderbyl commented 6 years ago

This could be easily solved in the latest release by traversing the dependencies of each included module. PRs accepted :)