Datepicker localization error Cannot convert undefined or null to object

hi,

i have 2 control(ejs-grid and ejs-datepicker)

i already setting localization to that control using cldr-data

everything works fine in ejs-grid when i open edit dialog, datepicker control inside grid edit dialog it work fine, but another datepicker in outside grid dialog has shown an error "Cannot convert undefined or null to object"

please help me to resolve this issue.

Thank you



Attachment: syncfusion_e4c3ca60.zip

4 Replies 1 reply marked as answer

TO Tony November 26, 2020 05:00 AM UTC

i found this solution here solutions
its because inside @syncfusion/ej2-angular-calendar have a @syncfusion/ej2-base

delete @syncfusion folder from  @syncfusion/ej2-angular-calendar/node_modules.


SN Sevvandhi Nagulan Syncfusion Team November 26, 2020 05:41 AM UTC

Hi Tony, 


Greetings from Syncfusion support. 


We are glad to hear that you have found the solution. Please get back to us if have any other queries. 


Regards, 
Sevvandhi N 



JL Jose Luis Garcia replied to Tony November 27, 2020 10:50 AM UTC

i found this solution here solutions
its because inside @syncfusion/ej2-angular-calendar have a @syncfusion/ej2-base

delete @syncfusion folder from  @syncfusion/ej2-angular-calendar/node_modules.

Hello,

After upgrade to latest version 18.3.51, I have the same problem and this solution does not work for me.
The DatePicker component is not working.

I've returned to 18.3.48 and all works fine.

I think may be a bug with the latest version.

Regards
Jose


SN Sevvandhi Nagulan Syncfusion Team November 30, 2020 02:44 PM UTC

Hi Jose, 

The reported issue will be occurred, when the CLDR-data for the corresponding culture not loaded in the application. So, please ensure that whether the culture file for corresponding culture is correctly loaded in your application. Also, ensure that whether you referred the cldr data from the node_modules correctly.  
 
 
Also, we suspect that the issue might occur due to duplicate packages were installed in the application. Generally duplicate package will be installed when there is any version mismatch between the packages. To resolve the reported issue in your end, kindly follow the steps given in the following UG documentation.    
    


We have not modified anything in globalization between the last version and the new version. So can you please check above details in your end and let us know if you need further assistance. 




Regards, 
Sevvandhi N 


Marked as answer
Loader.
Up arrow icon