We are using GULP and WebPack (installing angular-rickshaw with bower) and the JS files are loaded in this order:
/bower_components/rickshaw/rickshaw.js
/bower_components/d3/d3.js
/bower_components/angular-rickshaw/rickshaw.js
Then, we obtain this error:
Uncaught ReferenceError: d3 is not defined
But, when we use the correct order:
/bower_components/d3/d3.js
/bower_components/rickshaw/rickshaw.js
/bower_components/angular-rickshaw/rickshaw.js
The problem is gone!
Fix: add this to .bower.json on rickshaw folder:
"dependencies": {
"d3": "~3.4.3"
},
How can I propose this line to .bower.json?
Thanks...
We are using GULP and WebPack (installing angular-rickshaw with bower) and the JS files are loaded in this order:
Then, we obtain this error:
But, when we use the correct order:
The problem is gone!
Fix: add this to .bower.json on rickshaw folder:
How can I propose this line to .bower.json?
Thanks...