ej2.min.js getModuleName is not a function

Hi,

Until yesterday everything works fine, but today I'm getting this error when we try to apply filters on the grids.

ej2.min.js:10 Uncaught TypeError: this.parent.dataSource.adaptor.getModuleName is not a function

    at e.updateModel (ej2.min.js:10:8461647)

    at e.filterByColumn (ej2.min.js:10:8469062)

    at e.read (ej2.min.js:10:8441398)

    at e.filterBtnClick (ej2.min.js:10:8452285)


Unfortunately I was using https://cdn.syncfusion.com/ej2/dist/ej2.min.js, so I lost the previous version of this script (which works fine until last night)


11 Replies

SK Sujith Kumar Rajkumar Syncfusion Team January 14, 2022 06:54 AM UTC

Hi Jaime, 
 
Greetings from Syncfusion support. 
 
We are unable to reproduce the reported problem from our end as the Grid filtering was working properly. Please check the below EJ2 JS Grid sample with the online cdn script for your reference, 
 
 
So it would be helpful if you could share us the following information to validate further on this, 
 
  • Let us know which filter you have enabled and if you are using Grid’s UI level filter or Grid methods to perform the filter action.
  • Share us the video demonstration of the problem.
  • Have you bound local or remote data to the Grid. If remote data which adaptor have you used.
  • Share us the Grid code file to ensure the problem with your application Grid settings.
  • If possible share us a simple sample to replicate the problem or try reproducing it in the above shared sample. This would be helpful to identify your exact problem case and validate further based on that.
 
Regards, 
Sujith R 



LU Lukkian replied to Sujith Kumar Rajkumar January 17, 2022 01:19 AM UTC

Hello, I'm facing the same problem.

The issue is that the error appears only in ej2 version 19.4.42, version 19.4.41 works as expected.

Sujith R I tried, but couldn't reproduce the error in your sample in stackblitz, I think it's mainly because my project makes use of ejs.data.UrlAdaptor, the configuration is something like:


dataSource: new ejs.data.DataManager({

     url: '/api/DividaAtivaGridData',

     adapter: new ejs.data.UrlAdaptor(),

   })


Do you think it's possible to create a sample in stackblitz with a UrlAdaptor? 

If you can, I could do some testing and see if I can come up with a configuration that reproduces the problem.

Thanks.




LU Lukkian January 17, 2022 01:23 AM UTC

Jaime you can get any ej2 released version with this url: https://cdn.syncfusion.com/ej2/{version}/dist/ej2.min.js

Change {version} to the desired version, for example in my case:

https://cdn.syncfusion.com/ej2/19.4.41/dist/ej2.min.js > OK

https://cdn.syncfusion.com/ej2/19.4.42/dist/ej2.min.js > FILTER ERROR


Do you also use UrlAdaptor in your settings?



JS Jaime Sepulveda January 17, 2022 02:48 AM UTC

Yes, I use UrlAdaptor in all my grids.


I changed the script url to a previous version, in my case a test with 19.4.38, and works perfect. If I try to use https://cdn.syncfusion.com/ej2/dist/ej2.min.js I got the issue, so I presume the problem is in the latest version of this script.



PS Pavithra Subramaniyam Syncfusion Team January 17, 2022 10:38 AM UTC

Hi Jaime, 

We have validated the scenario and we have confirmed it as a bug and logged the defect report Script error while filtering with UrlAdaptor” for the same. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle) and including the defect fix in our weekly release which is expected to be rolled out by the January 27th  , 2022.  
           
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.     


Regards, 
Pavithra S 



LU Lukkian January 18, 2022 03:32 AM UTC

Hi Pavithra Subramaniyam, thanks for the commitment.

Could I also have access to the feedback link?

It's okay if it's not possible.



PS Pavithra Subramaniyam Syncfusion Team January 18, 2022 10:47 AM UTC

Hi Luis, 
 
Now you can access the feedback link and track for more updates on the reported defect.  
 
Regards, 
Pavithra S 



LU Lukkian January 25, 2022 02:18 PM UTC

Version 19.4.47 released today seems to fix the problem, thank you very much.



JS Jaime Sepulveda January 25, 2022 04:16 PM UTC

Thank you,


So far is working for me.



JC Joseph Christ Nithin Issack Syncfusion Team January 26, 2022 11:42 AM UTC

Hi Jaime, 

  Thanks for your update. 

  We are glad that the provided solution resolved your issue. 

 Please get back to us for further details. 

Regards, 
Joseph I. 



PS Pavithra Subramaniyam Syncfusion Team January 27, 2022 12:47 PM UTC

Hi Jaime, 

We are glad to announce that we have added the fix for the issue –“ Script error while filtering with UrlAdaptor” in our patch release (v19.4.47). So please update your packages to this version/latest version to include the fix.  
 
We thank you for your support and appreciate your patience in waiting for this release. Please contact us if you would require any further assistance.  

Regards,  
Pavithra S  


Loader.
Up arrow icon