EJS-Gantt freeze the browser in production

Dear supporters,
I'm having a runtime error while using ejs-gantt and don't know how to resolve it.
When using my localhost, everything working fine, the gantt still displays and no exception catched. But in my live product, the browser is freeze every time I open the ejs-gantt, and the exception error show "Error: NullInjectorError: No provider for GanttSort". I'm using the same datasource for both localhost and live product. Can you help me with this.
Thank you!


1 Reply

KR Karthikeyan Raja Syncfusion Team February 13, 2020 03:45 PM UTC

Hi Lam, 
 
We checked the Gantt sample in production mode, but we are unable to reproduce the issue. 
Please find the tested sample link. 
Please refer the below stack-overflow link. 
 
In Gantt, we inject Sort module as like below example in app.module.ts 
//... 
import { GanttModule, SortService } from '@syncfusion/ej2-angular-gantt'; 
@NgModule({ 
  //... 
  providers: [SortService], 
}) 
 
Please ensure, whether you have injected the Sort module as shown in above tabulation. 
If the issue still persists, please share us your angular-cli version and please modify our provided sample, so that it will be very helpful to check in our end. 
   
Regards,  
Karthikeyan Raja 


Loader.
Up arrow icon