I’m having problems implementing one of your samples “draggableLink” (). When I run the app, I get all the structure, but the GoJS script does not seem to be running.
I’m very new to JS in general, so I’m probably missing some pretty simple stuff. I really just need help to get started, then I tend to be able to figure out how things work. I’m currently using Meteor as well, if that makes any difference.
SyntaxError: expected expression, got ‘<’[Learn More]
go.js:1
SyntaxError: expected expression, got ‘<’[Learn More]
goSamples.js:1
ReferenceError: go is not defined[Learn More]
localhost:3000:231:3
Error: ToolManager.replaceStandardTool:newtool value is not an instance of Tool: [object Object]
modules.js:1019:21
I am however now getting the diagram part running on the right, so the basics seems to be running.
Apparently you are having some other problems, due to the syntax errors and the error that says that you have not loaded the go-debug.js library in the page.
I highly recommend that newcomers use go-debug.js instead of go.js for developing their app. You’ll get much better error checking, as long as you pay attention to the console window.
Yes, it seems to be unrelated to the GoJS, which works fine.
At the moment it’s something with trying to load the script itself “<script src="..\node_modules\gojs\release\go-debug.js"></script>” that insists on sending back an html file (like index.html, which I assume is some default when the file can’t be found).
I can’t really get my head around how to solve it though.