How to correctly require jsPlumb in a node.js application

805 views Asked by At

Since jsPlumb is not available in npm I have to add it manualy to my codebase. If I download it, put it in ./libraries/dom.jsPlumb-1.7.5.js and do a

var plumb = require('./libraries/dom.jsPlumb-1.7.5.js')

in my JavaScript, I get an error message in my console during application Startup:

Can't set property "jsBezier" of an undefined or nullpointer reference
File dom.jsPlumb-1.7.5.js', line: 3, col: 8232

What am I doing wrong here?

1

There are 1 answers

0
Benvorth On BEST ANSWER

I found a solution for that and posted it on the Issues Page of jsPlumb on github. See https://github.com/sporritt/jsPlumb/issues/399