I'm working on improving performance of an application where on one page we utilize ej2 Chart and Grid. We are using 19.1.66 and the full 15mb JS file. I used the Custom Resource Generator to include just Chart and Grid (ideally i'd trim that a little futher) to produce a js file with a smaller filesize than the full package. However it keeps giving an error on the generated version, see below. The full version does not five this error
I tried a generated version of 19.1.69, it also errors
I tried a generated version of 24.2.7, it does not error.
Commenting out:
_ej2_resources_19_1_66_scripts_ej2_grids__WEBPACK_IMPORTED_MODULE_1__["BlazorAction"],
From the non-minified version seems to fix it... but it's kinda annoying.
I wanted a quick win, without having to update, update backend libraries, and go through a ton of testing. Is this some sort of known issue? A problem with the Generator?
Uncaught TypeError: Cannot read properties of undefined (reading 'prototype')
at e.inject (ej2.min.js:9:170314)
at t.injectModules (ej2.min.js:9:177906)
at t.appendTo (ej2.min.js:9:176479)
at <anonymous>:37:4
at m (jquery-3.3.1.min.js:2:711)
at Re (jquery-3.3.1.min.js:2:47302)
at w.fn.init.append (jquery-3.3.1.min.js:2:48574)
at w.fn.init.<anonymous> (jquery-3.3.1.min.js:2:49666)
at z (jquery-3.3.1.min.js:2:31766)
at w.fn.init.html (jquery-3.3.1.min.js:2:49344)