Error Loading Jquery-ui In Require.js Config For Fancytree Plugin
I'm trying to load a jQuery control called fancytree and this control depends on jquery-ui. I'm getting an error saying that it hasn't loaded jquery-ui from the path I've given. Fa
Solution 1:
The error comes from line 85 of Fancytree:
_assert($.ui, "Fancytree requires jQuery UI (http://jqueryui.com)");
To solve that, add a shim for fancytree
:
'fancytree': {
deps: ['jquery-ui']
},
This is necessary because Fancytree is not defined as a module and depends on globals. Most library now uses something like UMD (Universal Module Definition).
Post a Comment for "Error Loading Jquery-ui In Require.js Config For Fancytree Plugin"