Webiks / force-horse

force-horse: An angular.js wrapper for a d3.js force layout
http://webiks.com/blog/force-horse-demo/
16 stars 3 forks source link

[Exception] this.svg.trasition is not a function #20

Open eitanfr opened 5 years ago

eitanfr commented 5 years ago

getting this after setting data. looks like this.svg has the wrong value not sure why I suddenly getting this.

image viewer exception line: image

ramtob commented 5 years ago

@eitanfr Do you get this error sometimes / always? Can it be reproduced?

ramtob commented 5 years ago

@eitanfr P.S. Please see if you can reproduce the error in the demo app http://webiks.com/blog/force-horse-demo/

eitanfr commented 5 years ago

yes it happens to me every time I set data to force-horse. tried to set 5 entities, with the default svg and still got this error

eitanfr commented 5 years ago

image Got the same error with the demo app... maybe related to chrome version (I use 68) or other packages versions...

ramtob commented 5 years ago

This seems to be the related issue in d3: https://github.com/d3/d3-selection/issues/185

ramtob commented 5 years ago

This error occurred when using yarn, rather than npm. Yarn locks versions in a different way than npm. A temporary fix is: