Component Generator Script giving Errors

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)


1 Reply

MI Mohamed Imran Thamin Ansari Syncfusion Team February 27, 2024 01:19 PM UTC

Hi Anthony,

Thank you for your patience as we address your query.

 

After reviewing the reported issue, we acknowledge that there were some script errors with the CRG scripts generated, confirming it as a known issue from our end.

 

However, we are pleased to inform you that with our latest patch release, we have included a fix for this issue. Additionally, we have ensured that this fix applies to all versions. You can now generate new scripts to resolve this problem.

 

If you encounter any further issues, kindly provide as more information like sample application or video reference so that we can provide prompt solution from our end.


Regards,

Mohamed Imran T



Loader.
Up arrow icon