[Angular5] error TS2339: Property culture does not exist on type 'typeof wijmo'

Posted by: lutz.kamphenkel on 9 March 2018, 6:06 am EST

  • Posted 9 March 2018, 6:06 am EST

    Hi,

    I’ve got troubles to get Wijmo-Enterprise.20173.409 running with Angular 5 (5.2.7 to be more exact).

    I set up a fresh Angular project with @angular/cli@1.7.2, which uses typescript 2.5.3. Now, when running the app, I get the error

    ERROR in node_modules/wijmo/cultures/wijmo.culture.de.ts(22,11): error TS2339: Property 'culture' does not exist on type 'typeof wijmo'.
    

    I understand this is a Typescript error that occurs when the variable hasn’t been declared before.

    So my question is: Did I miss to provide some file that declares mentioned variable or is this a bug in Wijmo?

    Thank you very much!

    BR

    Footnote: I am using the NpmImages/wijmo-commonjs-src of Wijmo, added css and cultures and published this to a private registry. This way I can use regular npm dependency management and judt include css + culture via angular-cli.json configuration.

  • Posted 9 March 2018, 7:03 am EST

    Please refer to this link on how to use Globalization with Wijmo controls and Angular

    https://www.grapecity.com/en/forums/wijmo/angular2webpack-culture#wijmoarchivehi-we-are-sorr

    In case the forum post doesn’t help then please send me your sample and we shall look into it.

  • Posted 23 March 2018, 6:15 am EST

    I found the solution: Using the contents of NpmImages/wijmo-commonjs-src as dependency dows not work - I had to remove all *.ts files, then it worked.

    So I kindly ask you to deploy distribute an Angular package in the Angular package format (https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/) as this would make things a lot easier.

    Thank you in advance!

  • Posted 26 March 2018, 7:23 am EST

    Hi

    I am glad that you were able to resolve this. I have taken a note of your request and created an Enhancement request for this. Please note the Internal Tracking ID: 315476 for future correspondence.

Need extra support?

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

Learn More

Forum Channels