I am facing an issue while trying to integrate an external library into my UI5 project. Specifically, I am working with jsPDF but it could be any other library as well.
I have included it in the manifest.json file in the following manner:
"js": [{
"uri": "libs/jspdf.js"
}
When I attempt to use it like this:
var doc = new jsPDF("p", "pt");
it works perfectly fine in a standalone UI5 application, however, it does not work in an extension.
Upon checking the window object in my running application, I notice that jsPDF is not present there.
I have also tried adding it using sap.ui.define
but encounter the same outcome.
What could be causing this issue? Is there a different method to include libraries in extensions? Or perhaps the library is being added somewhere else instead of the window object?