Wijmo Angular2 install

Posted by: luciano-moreno on 14 September 2017, 11:49 am EST

    • Post Options:
    • Link

    Posted 14 September 2017, 11:49 am EST

    Hi,

    I recently upgrade evaluation version on Wijmo 5 to licensed version.

    Using evaluation version, i successfully compile and run Wijmo 5 Angular2 Samples and our Angular2 web project using VS2015. After upgrading, i have a lot of compile errors on Wijmo Angular2 Samples and our project. To upgrade, i substitute all .ts files in wijmo folder under node_modules, all .d.ts files in scripts/definition folder. After compiling, i have hundreds of errors. Typical errors are “Duplicated xx identifier” (TS2300) or “;expected” (TS1005) related to wijmo.d.ts file. However, if a run Wijmo Samples or our project, we have no issue.

    I also try setup setting Wijmo dependency using NpmImage in package.json, but i obtain the same result.

    Can anyone help me ?

    Regards,

    L. Moreno

  • Posted 14 September 2017, 11:49 am EST

    Hi Luciano,

    I think this error(TS2300) is caused because you have references to global wijmo modules in your scripts folder and external modules in the node_modules folder. You don’t need these files if you are using the NPM images, so try removing ‘.js’, ‘.d.ts’, and ‘.ts’ files from all folders not in node_modules. You can keep any .css files.

    Let me know if this resolves your issue.

    Regards,

    Troy

  • Posted 14 September 2017, 11:49 am EST

    Below is a link to download a simple sample I created with a FlexGrid control. You can use it as a reference for comparison.

    http://publicfiles.componentone.com/TTaylor/FlexGrid.zip

  • Posted 14 September 2017, 11:49 am EST

    Hi Troy,

    thanks for your replay.

    I tried your suggestions, but during compilation I always get hundreds of errors.

    However, I recently discovered the reason of my problem. In my original mail, I forgot to indicate my development environment, which is Visual Studio 2015 Update 2. VS2015 Update 2 uses Typescript compiler 1.8. The licensed version of Wijmo Angular2 has introduced the keyword “Readonly” in many TS files. This keyword is supported starting from Typescript 2.0. VS2015 Update 2 is unable to apply Typescript 2.0, it support only 1.8.

    After upgrading to Update3 of VS2015, I install Typescript 2.0 compiler and hundreds of error disappear.

    Regards,

    Luciano

Need extra support?

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

Learn More

Forum Channels