Skip to content

app with library integrated could not be deployed to ABAP backend #30

Description

@nimble-123

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 :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions