0

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

Kezia Rose
  • 365
  • 1
  • 2
  • 12

1 Answers1

0

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

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

Kezia Rose
  • 365
  • 1
  • 2
  • 12