Two application use a customer library issue
See original GitHub issueOpenUI5 version: 1.98.0 Browser/version (+device/version): Chrome 98.0.4758.102
Any other tested browsers/devices(OK/FAIL):
URL (minimal example if possible):
User/password (if required and possible - do not post any confidential information here):
Steps to reproduce the problem: 1. 2. 3. When the app is clicked, an error will be reported when loading the dependent library.
What is the expected result? Both apps can load our library preload schema, sap/fhir/library-preload.js
What happens instead? failed to load JavaScript resource: sap/fhir/library-preload.js
Any other information? (attach screenshot if possible)
Hi,
Our team developed our library.
Loading library-preload.js works when our launchpad has only one application that depends on this library.
manifest.json
"sap.ui5": { "dependencies": { "minUI5Version": "1.7.0", "libs": { "sap.fhir": {} } }, "resourceRoots": { "sap.fhir": "./resources/sap/fhir" }
package.json
"dependencies": { "openui5-fhir": "2.2.8", }, "ui5": { "dependencies": [ "@sap/ui5-builder-webide-extension", "openui5-fhir" ] }
But now when both apps dependencies this library, opening either app in launchpad will give the error in the screenshot.
Error screenshot:
Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Hi Peng, using a reuse library in the launchpad is definitely a topic for the launchpad team. Let’s close the issue here and follow-up internally.
@MatthiasSchmalz already published a deep-dive series about the launchpad service and how it can be used.
Following “Part 2” should do the work for you.
Hi Peter,
I re-mosaic the sap internal link in the screenshot above. This SAP internal incident was created by me, but the launchpad team thinks that this is not their issue, it is an issue of library reuse, so they are not very clear on what to do, so I created this issue here. I saw some information saying that the library is to be deployed to BTP, is that true? Do you know how to deploy it, I haven’t seen a specific operation document.
Best Regards, Peng