cancel
Showing results for 
Search instead for 
Did you mean: 

Error: import: failed to load the library

02-04-2022 9:32 PM
516 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

I have been able to find a couple of similar posts, which are really old and didn't really provided an answer, so asking it here:

Im trying to setup some testing within a XS project. We already make use of XSUnit, but I wanna add some stuff outside of those functionalities. I have found a library in sap.hana.xs.lm.js which should be able to convert xml's to Json format. (xmlHandler). However, when I try to import this in inside my script, i get an error:

Error: import: failed to load the library 

$.import('sap.hana.xs.lm.js', 'xmlHandler'); > it fails on this line. What am I overlooking? Is it even possible to import from there and use those libs as part of my xs project? My project is located in a package other than "sap", but that should not be a problem since the xsjslib files also import from sap package.

0 Likes

Accepted Solutions (0)

Answers (0)