I am trying to use a library called techan.js with Ember. It is dependent on d3.js.
In my Brocfile.js, I have:
app.import('bower_components/d3/d3.js'); app.import('bower_components/TechanJS/dist/techan.js');
However, when I run the app, there is an error because d3 is not defined when it is running techan.
When using an AMD library like Requirejs, you can define dependencies and get them to load in the right order. Does Ember have a similar capability?
Yes, ember supports libraries with dependencies. After all steps you did you just should declare
d3
andtech
as globals to avoid error you see.