How to migrate from local Wijmo files to npm module

Posted by: pritam1995kumar on 9 July 2019, 8:38 am EST

    • Post Options:
    • Link

    Posted 9 July 2019, 8:38 am EST

    We started using wijmo 2 yrs back. That time after purchasing we downloaded the files and kept the module inside application. Now we are migrating to angular 8 so we want to refer wijmo from npm. Any help will be appreciated.

  • Posted 10 July 2019, 6:35 am EST

    Hi Pritam,

    To migrate to the new NPM package of wijmo, first, you need to delete the wijmo folder from the node_modules folder and update your package.json as follows:

    dependencies: {
           ...
           [b]"wijmo": "file:wijmo"[/b]
    }
    

    Change wijmo to the following:

    dependencies: {
           ...
           [b]"@grapecity/wijmo.angular2.all": "^5.20191.615"[/b]
    }
    

    This will install all the angular2 packages required for your project.

    The import statement will also be updated in your applications. Before migrating the application, your import statement must be:

    import * as wjcGrid from 'wijmo/wijmo.grid';
    
    

    You need to update this statement as follows:

    import * as wjcGrid from '@grapecity/wijmo.grid';
    

    You will need to do this for all of your import statements.

    You may also refer to this blog below for detailed information:

    https://www.grapecity.com/blogs/wijmo-npm-package-changes

Need extra support?

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

Learn More

Forum Channels