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