openui5-googlemaps icon indicating copy to clipboard operation
openui5-googlemaps copied to clipboard

app with library integrated could not be deployed to ABAP backend

Open nimble-123 opened this issue 7 years ago • 1 comments

hi john,

we tried to include your library to our project. We added the lib files to webapp/lib/openui5, defined the lib in manifest.json descriptor and added the xml namespace to the corresponding views.

screenshot at nov 08 15-40-22
"sap.ui5": {
		"resourceRoots":{
			"openui5": "lib/openui5"
		},
		"dependencies": {
			"minUI5Version": "1.44.18",
			"libs": {
				"sap.m": {},
				"sap.ui.core": {},
				"sap.ui.layout": {},
				"openui5.googlemaps": {}
			}
		},
<mvc:View
  xmlns="sap.m"
  xmlns:mvc="sap.ui.core.mvc"
  xmlns:semantic="sap.m.semantic"
  xmlns:html="http://www.w3.org/1999/xhtml"
  xmlns:footerbar="sap.ushell.ui.footerbar"
  xmlns:gmaps="openui5.googlemaps"
>

In WebIDE or local development everything works fine, map is displayed and we are able to interact with it. But when we try to deploy the app from webide to netweaver as abap backend system it raises following error message.

microsoftteams-image

So for me it seems that resourceRoot is the wrong section in app descriptor, because the launchpad tries to load the lib from the abap repository instead of the folder inside the deployed app.

Do we have to explicitly use sap.ui.getCore().loadLibrary("openui5.googlemaps", "../openui5/googlemaps/"); if we develop apps with your lib for the fiori launchpad?

any help would be nice :)

nimble-123 avatar Nov 08 '17 14:11 nimble-123

Hello,

Beautiful library. Thank you for sharing.

Unfortunately it is unusable because not deployable on a system. Same problem. Have you found a solution?

NbeGitHub avatar May 07 '19 14:05 NbeGitHub