This topic contains 7 replies, has 4 voices, and was last updated by  Manish Gupta 1 month ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #83376

    In wijmo.ts we receive the error in line

    window[‘wijmo’].culture = _globalCulture;

    could not be set (read only).
    Commenting out this line – and it works.

    Browser: IE11, Edge, Chrome 55.0.2883.87 m (64-bit),
    Windows 10

    All build/bundled with Angular-Cli.

    Errormessage:
    Uncaught TypeError: Cannot set property culture of #<Object> which has only a getter

    • This topic was modified 5 months, 2 weeks ago by  m.miertschink.
    #83587

    m.miertschink
    Member

    Answer

    Fixed via using the minified Version of the npm packages Distribution.

    #83600

    Manish Gupta
    Moderator

    Wijmo Subscriber

    Hi,
    We are glad that you were able to figure out the solution. Thanks for sharing it .

    Thanks again 🙂
    Manish Kumar Gupta

    #84147

    dominique.lagesse
    Member

    Wijmo Subscriber

    What is the correct way to resolving this ? By commenting this out in the sources, doesn’t it result in other things breaking down the line ? Like maybe Localization per culture.

    It is still incorrect in the Source Folder.

    #84172

    Don’t comment it out – use the minified Version for building the project. The npm packages are available in *.ts versions and minified where only *.d.ts was supplied.
    But it must be fixed anyways – hopefully in the next version…

    #103881

    amiller
    Member

    Wijmo Subscriber

    Hi,

    Wijmo: 5.20171.293
    Angular: 4.1.2

    This started currently happening in the latest release. Been working happily in all previous version. The minified version works fine, but how can I track down issues if I cannot use the full source code base.

    Any suggestions on how to fix?

    Regards,
    Anthony

    #103884

    amiller
    Member

    Wijmo Subscriber

    Hi,

    I commented out the line from wijmo.ts file.

    window[‘wijmo’].culture = _globalCulture;

    Cheers,
    Anthony

    #104052

    Manish Gupta
    Moderator

    Wijmo Subscriber

    Hi Anthony,
    We are glad to know that you have resolved your issue and thank you for sharing solution here.
    However, we are unable to replicate issue at our end.
    Please refer to the following link that describes steps for replicating issue at our end.

    If issue persists, please let us know with steps for replicating issue so that we can replicate and assist you accordingly.

    Thanks,
    Manish Kumar Gupta

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.