Cannot read property 'mediaText' of undefined
Jai-Kumaresh opened this issue · 1 comments
Jai-Kumaresh commented
i will add grapesjs-tabs module in my angular project. That tabs button is enable in my editor. I drag that button error(Cannot read property 'mediaText' of undefined) is occurred in MYPROJECTFOLDER/node_modules/script-loader/addScript.js
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
module.exports = function(src) {
function log(error) {
(typeof console !== "undefined")
&& (console.error || console.log)("[Script Loader]", error);
}
// Check for IE =< 8
function isIE() {
return typeof attachEvent !== "undefined" && typeof addEventListener === "undefined";
}
try {
if (typeof execScript !== "undefined" && isIE()) {
execScript(src);
} else if (typeof eval !== "undefined") {
eval.call(null, src); // `**ERROR OCCURRE HERE**`
} else {
log("EvalError: No eval function available");
}
} catch (error) {
log(error);
}
}
Jai-Kumaresh commented
Sorry i no see that first.(https://www.npmjs.com/package/grapesjs-tabs#requirements)