When exporting a Datagrid to Excel, Kendo requires JSZip. However kendo assumes JSZip is a global which is not true when loaded in an AMD environment as JSZip does not export a global. Therefore I propose to at least use a call to require in case JSZip has already been loaded (kendo.ooxml.js, line 593):
toDataURL:
function
() {
var
JSZip = window.JSZip;
if
(
typeof
JSZip ===
"undefined"
) {
if
(define && define.amd) {
JSZip = require(
'jszip'
);
}
else
throw
new
Error(
"JSZip not found. Check http://docs.telerik.com/kendo-ui/framework/excel/introduction#requirements for more details."
);
}
var
zip =
new
JSZip();
...
}
Even better was of course a true asynchronous loading:
require([
'jszip'
],
function
(JSZip) { ... })