Syncfusion React Schedule Component Localization does not work

Hello, I am trying to localize the react schedule component. It does not work on the project I am working, but the same code on a fresh project with the same versions for all syncfusion packages, cldr-data and nodejs works. I get the error: 

Uncaught TypeError: Cannot read properties of undefined (reading 'trim')

Trying to debug, I found that on my main project cldrData is on the following structure:

{ default: { main, supplemental } }

however, on my side project cldrData have the following structure:

{ default, main, supplemental }

I would like a help to know how to fix this issue. If I can provide more info if needed.


2 Replies

GS Gabriel Silva November 13, 2023 11:28 PM UTC

I found a solution. I changed the config of webpack on my project, adding the following rules:

rules.push({
test: /\.json$/,
loader: 'json-loader',
type: 'javascript/auto',
});


SK Satheesh Kumar Balasubramanian Syncfusion Team November 14, 2023 07:10 AM UTC

Hi Gabriel,

We are happy to hear that you have found a solution.

Please let us know if you need any further assistance.

Regards,
Satheesh

Loader.
Up arrow icon