Error while using culture method in SpreadJS 14.1.0

Posted by: tegbir.singh on 25 July 2021, 2:44 am EST

  • Posted 25 July 2021, 2:44 am EST

    Hi,

    We are using SpreadJS 14.1.0 in our angular application. While loading, the following code is used to add the culture for spread.

    GC.Spread.Common.CultureManager.addCultureInfo(“en-US”, myCulture);

    GC.Spread.Common.CultureManager.culture(“en-US”);

    we are getting the following error while running the application:

    TypeError: Cannot read property ‘MOa’ of null

    at a.onCultureChanged (gc.spread.sheets.charts.14.1.0.min.js:16)

    at Function.a.ao (gc.spread.sheets.all.14.1.0.min.js:17)

    at a.Av (gc.spread.sheets.all.14.1.0.min.js:21)

    at HTMLDocument.a.cultureChangedHandler (gc.spread.sheets.all.14.1.0.min.js:20)

    at ZoneDelegate.invokeTask (zone-evergreen.js:399)

    at Object.onInvokeTask (core.js:28269)

    at ZoneDelegate.invokeTask (zone-evergreen.js:398)

    at Zone.runTask (zone-evergreen.js:167)

    at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:480)

    at invokeTask (zone-evergreen.js:1621)

    Could you please help?

    Thanks, Tegbir

  • Posted 26 July 2021, 8:59 am EST

    Hi Tegbir,

    We are sorry but we are unable to replicate the issue at our end, Could you please share a small sample that replicates the issue so that we could investigate it further and assist you accordingly. You may also refer to the following sample that we used for testing and modify it to replicate the issue.

    sample: https://codesandbox.io/s/thirsty-dhawan-uh4su?file=/src/index.js

    Regards

    Avinash

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels