I have an external library (web-designer.js by Grapecity) which runs fine on plain HTML application. I want to use this library as it is in one of my Angular Components. I have added reference to this library, but I get errors while importing the file in Angular.
This is how I reference the library (jQuery is a dependency):
import '../app/lib/scripts/jquery';
import '../app/lib/scripts/web-designer';
The cdn link for library is http://cdn.grapecity.com/ActiveReports/AR13/webdesignerresourcefiles/web-designer.js
These are the errors that I get while loading Angular application. Please note that I get same errors when I use require instead of import. The dependencies 'Barcode' and 'dv' are within web-designer library but Angular is unable to find it.
There seems some issue in exporting the modules in the JS library. I am able to refer jQuery in the same way but not web-designer.js.
I want to modify the JS library so that I am able to consume it directly (as it works fine on plain HTML application). The file (given in link above) is large and minified and I am unable to modify it to suit my needs.
Looking for solutions if anyone has faced similar issue.
