Syncfusion charts not displaying after pushed to production

77 Views Asked by At

The code has been moved to production and the issue appears. Not able to load the pages with charts in it. Getting a fatal error on trying the same. The error received is, Class constructor Orl cannot be invoked without 'new'. This works fine in dev environment. I'm attaching images of the syncfusion packages installed and also the error obtained on trying to access pages with charts.

syncfusion packages installed

Error obtained on trying to access pages with charts

The compiler options are as shown below.

enter image description here

1

There are 1 best solutions below

0
Kezia Rose On

The issue was fixed by changing the target type to es5.

Successfully reproduced the issue by using the 'ng serve --prod' command.