After doing bower install dagre-d3, the demo pages included in the bower package do not function. For instance, when opening demo/interactive-demo.html in Chromium, I get no graph, and see these errors in the console (Firefox gets errors too, but they're different ones):
GET http://localhost:8081/build/dagre-d3.js interactive-demo.html:8
Uncaught ReferenceError: dagreD3 is not defined interactive-demo.html:141
Uncaught TypeError: Cannot read property 'apply' of undefined d3.v3.js:897
Looking closer, it's trying to pull in ../build/dagre-d3.js, which no longer exists:
Changing the <script> tag to reference the correct path (../dist/dagre-d3.core.js), I then see these errors instead:
Uncaught TypeError: Cannot read property 'layout' of undefined dagre-d3.core.js:764
Uncaught ReferenceError: dagreD3 is not defined interactive-demo.html:141
Uncaught TypeError: Cannot read property 'apply' of undefined d3.v3.js:897
Since the bower package only includes the dagre-d3.core.* files (which are built with browserify --no-bundle-external), we need to include dagre and lodash as well:
After doing
bower install dagre-d3
, the demo pages included in the bower package do not function. For instance, when openingdemo/interactive-demo.html
in Chromium, I get no graph, and see these errors in the console (Firefox gets errors too, but they're different ones):Looking closer, it's trying to pull in
../build/dagre-d3.js
, which no longer exists:Changing the
<script>
tag to reference the correct path (../dist/dagre-d3.core.js
), I then see these errors instead:Since the bower package only includes the dagre-d3.core.* files (which are built with
browserify --no-bundle-external
), we need to include dagre and lodash as well:After making that change, it works as expected.
Possibly related to #100.