Gantt Component - Some problems found.

Hi, I’ve faced some problems in Gantt Component, they are:

1) Drag and Drop Functionality - Script throws "Cannot read property 'level' of null". 

Link: https://stackblitz.com/edit/angular-qapef7-gantt1?file=app.component.html
To reproduce this one, you need to drag item 1 tree and drop it below item 5. The script throws "Cannot read property 'level' of null".


2) Indent Problem (Context Menu) - After Indent one item at the bottom, it becomes a child of the wrong item. 

Link: https://stackblitz.com/edit/angular-qapef7-gantt1?file=app.component.html
If you try to indent item 5, it will be a child of item 3. Shouldn’t it be a child of item 1?


3) Convert Task -> Milestone  (Context Menu): When I convert a task to a milestone, the script throws “Cannot access 'data' before initialization”.

I couldn’t reproduce this one on Stackblitz but it follows attached a project to reproduce this problem. Locally, the script throws “Cannot access 'data' before initialization at ContextMenu$2.contextMenuItemClick (ej2-gantt.es2015.js:24320)”.


4) If I enable Ivy on Stackblitz I get “ngcc failed to run on @angular/[email protected], @syncfusion/[email protected].”


Am I doing something wrong to get these problems?

Regards,
Wendell Gasparoni.

Attachment: srcissue3_2a28c977.zip

10 Replies

MS Monisha Sivanthilingam Syncfusion Team January 14, 2021 04:02 PM UTC

Hi Wendell, 
  
Thank you for contacting Syncfusion support. 
  
Please find the below response for your queries. 
  
Sl. No. 
Query 
Syncfusion Comments 
1 
Drag and Drop Functionality - Script throws "Cannot read property 'level' of null".  
We were able to reproduce the reported error and have logged a bug report for this. You can track it’s status from the below feedback. 
  
  
The fix will be provided in the Volume 4 SP Release expected to be released in the end of January. 
  
2 
Indent Problem (Context Menu) - After Indent one item at the bottom, it becomes a child of the wrong item.  
We were able to reproduce the reported error and have logged a bug report for this. You can track it’s status from the below feedback. 
  
  
The fix will be provided in the Volume 4 SP Release expected to be released in the end of January. 
  
3 
Convert Task -> Milestone  (Context Menu): When I convert a task to a milestone, the script throws “Cannot access 'data' before initialization”. 
We tried to replicate this issue with the latest dependencies installed. However, we were unable to reproduce the issue. We even tried with the sample you provided. Would you please upgrade your dependencies to the latest version and ensure that the issue still occurs ? 
  
In case the issue occurs even after updating your packages, could you modify the attached sample to replicate your issue ? Please find the sample from the below link. 
  
  
4 
If I enable Ivy on Stackblitz I get “ngcc failed to run on @angular/[email protected], @syncfusion/[email protected].” 
We have made use of the Ivy to create a Gantt sample. Please find the sample from the below link. 
  
  
We have made use of the following skeleton sample using Ivy to create the sample. 
  
Please contact us if you require any further assistance. 
  
Regards, 
Monisha. 



WG Wendell Gasparoni January 15, 2021 04:07 PM UTC

Hi, thank you.

It follows the feedback about issues 3 and 4.

3) On StackBlitz, the example referenced works fine, but in my local environment, I get the following message:

"Your global Angular CLI version (11.0.7) is greater than your local version (9.1.13). The local Angular CLI version is used ...

This version of CLI is only compatible with Angular versions 0.0.0 || ^ 9.0.0-beta || > = 9.0.0 <10.0.0, but Angular version 11.0.8 was found instead.".

I have updated the local Angular CLI to 11 and the Gantt package and dependencies, but the issue remains. Is the version @syncfusion/[email protected] the latest version? On npm, it says 18.4.33, but the documentation says 18.4.44.

4) Does it works only in older Angular versions? I've tried to enable the Ivy in the referenced example in issue 3, but the message "ngcc failed to run on ..." comes up again.


Regards,
Wendell Gasparoni.


MS Monisha Sivanthilingam Syncfusion Team January 18, 2021 02:03 PM UTC

Hi Wendell, 
 
Please find the responses to your queries below. 
 
Sl. No 
Query 
Syncfusion Comments 
1 
On StackBlitz, the example referenced works fine, but in my local environment, I get the following message: 
We were able to check with the sample you shared in the previous update. However, we were not able to produce the error you reported. Attached below is a screenshot of the Angular CLI and Node versions used.  
 
 
 
We have also used Angular CLI version 11.0.2. We have also attached a video of us using the converting a task to milestone in the sample you shared. Please find the video from the below link. 
 
 
Also, we would like to inform that the latest version of Syncfusion packages will be @syncfusion/[email protected]. 
 
2 
Does it works only in older Angular versions? I've tried to enable the Ivy in the referenced example in issue 3, but the message "ngcc failed to run on ..." comes up again. 
We have referenced many sites and there have been reports that Stackblitz does not support Ivy in later versions of Angular. 

 
Please contact us if you require any further assistance. 
 
Regards, 
Monisha 



WG Wendell Gasparoni January 18, 2021 06:15 PM UTC

Hi, Monisha, thank you.

About issue 3, sorry for my wrong description about it. The issue comes up when I try to convert a milestone to a task, actually (not the other way around). It follows attached a video of the problem.

Obs. 
This problem doesn't occur on StackBlitz, but locally. 

Regards, 
Wendell Gasparoni.

Attachment: issue3video_51c75e3.zip


GM Gopinath Muniraj Syncfusion Team January 20, 2021 01:24 PM UTC

Hi Wendell, 
We are also able to reproduce the reported error in the local sample. We consider this as bug from our side. We have logged a bug report for this. The status can be logged through below feedback link. 
The fix will be included in our upcoming SP release, which is expected to be rolled out on 28th January 2021. 
Regards, 
Gopinath M 



WG Wendell Gasparoni January 20, 2021 05:24 PM UTC

Ok, thank you.


GM Gopinath Muniraj Syncfusion Team January 21, 2021 03:10 AM UTC

Hi Wendell, 
You are welcome! 
We will update you once the issue gets fixed. 
Regards, 
Gopinath M 



MS Monisha Sivanthilingam Syncfusion Team January 22, 2021 06:55 AM UTC

Hi Wendell, 
 
We are glad to announce that the issues reported in feedbacks 21411 has been fixed and released in v18.4.35. Please find the release notes from the below link. 
 
 
We have also prepared a sample demonstrating the solution. 
 
Please contact us if you require any further assistance. 
 
Regards, 
Monisha. 



MS Monisha Sivanthilingam Syncfusion Team January 22, 2021 06:55 AM UTC

Hi Wendell, 
 
We are glad to announce that the issues reported in feedback  21412 has been fixed and released in v18.4.35. Please find the release notes from the below link. 
 
 
We have also prepared a sample demonstrating the solution. 
 
Please contact us if you require any further assistance. 
 
Regards, 
Monisha. 



MS Monisha Sivanthilingam Syncfusion Team March 17, 2021 11:06 AM UTC

Hi Wendell,  
  
We are glad to announce that the issue reported in feedback 21613  has been fixed and released in v18.4.35. Please find the release notes from the below link.  
  
  
We have also prepared a sample demonstrating the solution.  
  
Please contact us if you require any further assistance.  
  
Regards,  
Monisha.  


Loader.
Up arrow icon