Friday, January 27, 2017

Loading JsPlumb with RequireJS

Have you hit with an error like below ?

   
     Uncaught TypeError: Cannot read property 'Defaults' of undefined

          
Or something similar which says jsPlumb is not loaded with requireJs ?

Solution

Add jsPlumb to your shim configuration using the export setting as shown below.

And then you can use the library in the usual manner.

No comments:

Post a Comment