PSPavithra Subramaniyam Syncfusion Team April 22, 2019 02:04 AM
Thanks for contacting Syncfusion support.
From your query we suspect that some duplicate package might be present in the @syncfusion folder of the node_modules. So we suggest you to use the remove the @syncfusion packages folder and install the packages again to resolve the problem. Please refer to the below documentation link for package update.
Please get back to us if you need further assistance.
JAJaumeApril 22, 2019 12:06 PM
I tried your indications but it didn't work, I created the new project from scratch, copy the same src folder and then it worked again ¿?
But now when using a vue component as a column template in treegrid it throws the following error and previously worked:
TypeError: str.replace is not a function
at evalExp (template.js?5cc4:65)
at compile (template.js?5cc4:52)
at Object.Engine.compile (template-engine.js?d9ef:57)
at compile (template-engine.js?d9ef:16)
at templateCompiler (util.js?d769:145)
at new Column (column.js?3b5d:131)
at prepareColumns (util.js?d769:185)
at Grid.render (grid.js?9c37:701)
at Grid.Component.appendTo (component.js?c155:129)
at TreeGrid.render (treegrid.js?73ba:455)
It could be a problem using a Gantt, Scheduler, Grid and Treegrid in the same app? The last version of Gantt component is 17.1.40 and others have 17.1.41...
PSPavithra Subramaniyam Syncfusion Team April 23, 2019 12:25 AM
Thanks for your update.
Please ensure whether the “node_modules/@syncfusion” folder has no any duplicate packages (ex: “node_modules/@syncfusion/ej2-navigations/node_modules/@syncfusion/ej2-base”).
If yes, please remove the duplicate “node_modules” folder from all the ej2-component folders and try to run the sample.
Please get back to us if you need any further assistance on this.
JAJaumeApril 23, 2019 02:35 AM
I removed every existing node_modules inside each @syncfusion/ej2 controls and the problem has solved. Why this happens? Every time I do npm update I need to do the same thing...How to fix it permanently?
Now I have another problem, I have a grid with filtering, sorting, reordering and grouping, when the grid is the default route view and I load the app the first time none of the previous features are available, the grid is rendered but not the filter row, grouping,.... Then I navigate to other view that has a treegrid with filtering, sorting and reordering and now the features are correctly rendered and If I go back to the previous view then the grid is rendered correctly with all features but without grouping that still doesn't work.
PSPavithra Subramaniyam Syncfusion Team April 24, 2019 10:47 PM
Query #1: I removed every existing node_modules inside each @syncfusion/ej2 controls and the problem has solved. Why this happens?
Duplicate node modules are installed in the @syncfusion namespace is due to version conflicts in the dependency package version of updating package and package version in the application.
Query #2: Every time I do npm update I need to do the same thing...How to fix it permanently?
We suggest you to maintain latest version of all packages used in your application to resolve this issue or uninstall the packages and reinstall them will resolve this issue.
Query #3: grid is rendered correctly with all features but without grouping that still doesn't work.
Before we proceeding this we would like to know the below mentioned information. It will help us provide a better solution as soon as possible,
If you want to maintain the Grid state after the page refresh, then we suggest to use enablePersistance feature of the Grid to achieve this requirement. Refer the below link to know about enablePersistance feature of the Grid,