Skip to Content
Jan 28, 2020 at 12:38 PM

library-preload not found for custom SAPUI5 library


Hello experts,

I'm currently trying to have a custom SAPUI5 library properly imported and used by an array of applications deployed in the Fiori Launchpad of an S/4HANA system.

Now, what I have done was to copy the library files into a corresponding "lib" folder and reference them in the manifest.json, as well as in the corresponding view controllers.

Next, I deployed the application that uses the library, registered it with the Fiori Launchpad and tried to run the app.

App runs fine, but if I check the console I have the following errors:

What puzzles me is that the runtime looks for the library-preload.js into the files of another SAPUI5 app (the library used is also deployed as an SAPUI5 app), as opposed to looking for it in the resourceRoots defined in manifest.json.

Is there a reason why this happens? I would expect for the runtime of the Fiori Launchpad to consider manifest.json and look for library-preload.js in ./lib/com/customlibrary/library-preload.js.

Thank you and have a good day!