InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable (joint.min.js / line 47)

1,265 views
Skip to first unread message

dPeace

unread,
Nov 22, 2015, 10:47:20 PM11/22/15
to JointJS
I am getting an "InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable" in joint.min.js @ line 47.

I am not very adept at javascript and am just trying to get the Org Chart jointJS demo to run.  

I cannot find any support documents on this issue so I am certain it is a noob mistake.  What am I missing?

dPeace

unread,
Nov 25, 2015, 12:41:57 PM11/25/15
to JointJS
It seems the code with the issue is as follows:

var e = this.node.getTransformToElement(b || this.node.ownerSVGElement);

dPeace

unread,
Nov 25, 2015, 3:17:18 PM11/25/15
to JointJS
Attaching my demo code and a Firefox debug screenshot.  Thanks!


On Sunday, November 22, 2015 at 10:47:20 PM UTC-5, dPeace wrote:
code and ffx debug screenshot.zip

dave

unread,
Nov 25, 2015, 3:21:01 PM11/25/15
to JointJS
Would it be possible to post the whole working demo including the scripts and stylesheets? It's much easier if we can just open it and see exactly what you see. Thanks!

dPeace

unread,
Nov 26, 2015, 8:16:59 AM11/26/15
to JointJS
Attached.
org-demo.zip

dave

unread,
Nov 27, 2015, 3:48:54 PM11/27/15
to JointJS
which html file is your demo? How do I get to see the error? I tried opening all .html files but none of them produce the error. They're all blank pages.

dPeace

unread,
Nov 28, 2015, 9:36:24 AM11/28/15
to JointJS
org-demo.html.  The result of the error is that the page does not render.  If you use FireFox's dev tools you can see the actual error that I sent you the screen shot.

That demo is your own demo for the org chart.  I am simply trying to first get that demo to run from my web server.

Thanks.

dPeace

unread,
Nov 30, 2015, 11:11:35 AM11/30/15
to JointJS
Dave, jjs-demo.html is the only demo code that is working for me.  It's your basic demo that renders two blue connected boxes that say "My Box" inside of them.

Just need to figure out how to get org-demo.html to work.  At a loss at the moment.



On Friday, November 27, 2015 at 3:48:54 PM UTC-5, dave wrote:
Reply all
Reply to author
Forward
0 new messages