Closed Maximres closed 5 years ago
Some piece of code that you are loading is invoking define
with an anonymous module id. You could:
require
it) such that the AMD loader creates the <script>
tag.define
will not be available to that piece of code)define
for the duration of evaluation of that script (i.e. if you load it with a <script>
tag, then unset define
before and restore it afterwards)define.jquery
, AFAIK jquery
might be checking for that on the define
functionGood luck!
Loader version: 0.12.0(160c7612faa359c4f196a0f3292a0f2752a1daf5) jq validator version: 1.14.0 There are 2 issues:
loader.js throws exception with message "Can only have one anonymous define call per script file" after trying to load jquery.validate.js file second time (that is, jquery.validate.js already exists in sources, but load it once again).
When jquery.validate.js is downloaded via require() function exception is gone, but validator calls for dependencies (JQuery) which already included in source. Furthermore, dependency name is incomplete (but this is validate.js fault).
Is there any way to get rid of this exception (loading validator manually) or could you provide api to exclude dependencies?