cancel
Showing results for 
Search instead for 
Did you mean: 

WebIDE Personal Unable to Run Standard App or Extension

0 Kudos

I am working on a requirement to extend the standard app, Display GL Account Line Items, however anytime I try to view the extensibility pane or preview the extension (or preview the app directly from webIDE personal) it returns an error.

"Failed to load UI5 component with properties '{"componentData":{"startupParameters":{}},"asyncHints":{"waitFor":[{}]},"name":"fin.gl.lineitembrowser.display","url":"../../../../../..","async":true,"id":"application-Test-url-component"}'. - Error: failed to load 'sap/fin/central/lib/library.js' from /sap/bc/ui5_ui5/sap/fin_lib/library.js: SyntaxError: Unexpected token <"

I have tried many solutions offered from mapping the resources in the neo-app.json, and also adding to the Component file by registering the module path.

In general, anytime I try to re-start a new extension project it will not be able to load the component file from the original app, returning this error:

"Failed to load UI5 component with properties '{"componentData":{"startupParameters":{}},"asyncHints":{"waitFor":[{}]},"name":"fin.gl.lineitembrowser.display.FIN_GL_LITBEx2","url":"../../../../../../webapp","async":true,"id":"application-Test-url-component"}'. - Error: failed to load 'fin/gl/lineitembrowser/display/FIN_GL_LITBEx2/Component.js' from ../../../../../../webapp/Component.js: Error: failed to load 'fin/gl/lineitembrowser/display/Component.js' from /sap/bc/ui5_ui5/sap/FIN_GL_LITB/Component.js: SyntaxError: Unexpected token <"

Any idea why it seems to get the syntax error from '<' ?

WebIDE personal can find the application and import it into my workspace, but never seem to be able to run it.

I have also tried to run the standard app from eclipse but cannot seem to get it to locate the 'sap/fin/central/lib/library.js' file. Did the same a above by trying to register module path with no luck.

wangermarwanger
Explorer
0 Kudos

Hi Justin,

I got the same issue in my project and wanted to ask how you solved it.

I found that the problem is the Component.js of the standard fiori app I want to extend.

It can be found in my case but the response is the HTML of a login page.

So I get the error with the "<".

Maybe you got the same problem.

Kind regards

MW

Accepted Solutions (0)

Answers (3)

Answers (3)

maari
Discoverer
0 Kudos

Hi Justin,

Are you able to solve this issue, currently i am facing same issue, however in my case i am able to run the app from fiori launchpad but not from webide. Please let me know.

Regards,

Maruti

0 Kudos

Hi,

I have the same issue. I imported the standard app from to my webide but I am unable to run it.

I even added a index.html file with the standard script to inject the component container into the div tag of the html. But i get errors of library files not being loaded. Please point me to a blog where there are steps to import a standard app to webide and run it.

former_member244013
Discoverer
0 Kudos

Hi Mathias,

Try adding 'authenticationMode: "none"' in your neo-app.json file. This is now required as SCP security policy enforces it. Here's the related SAP KBA:

https://launchpad.support.sap.com/#/notes/2418533

Regards,

Jignesh

former_member189220
Active Contributor
0 Kudos

Would you please specify how you created the extension project? Which steps have you implemented?

Also please find this section in the documentation regarding the different ways of previewing an application:

https://help.hana.ondemand.com/webide/frameset.htm?fcc3b671ca084c8ab5e009bd4de19048.html

Next, in the extension project, please check:

1. that its neo-app.json has a blockof sap/bc/ui5_ui5

2. that its Component.js has a reference for the original app's Component.js

Please have a look at your back-end (probably FIN_GL_LITB)

or import it in Web * and see if its Component.js file is located correctly under the root.

According to the error message you get, the extension project can't find the original app's Component.js so please do confirm it indeed exists where it should be.

0 Kudos

Hello Milen, thank you for the response. To create I have used the wizard in web IDE personal - File > New > Extension Project (then go into the repository and select the app FIN_GL_LITB, and both imported the original app and also tried without importing)

The neo-app.json file has the block "/sap/bc/ui5_ui5" for the gateway destination entry

Web IDE personal will place the Component.js of the extension project in the webapp folder. For the original source code, there is not a webapp folder since it runs off component file.

The extension Component.js file will call the original app's component, but you are correct it cannot seem to find it for some reason.

Here is the code from the Component.js Extension -

sap.ui.component.load({ name: "fin.gl.lineitembrowser.display", // Use the below URL to run the extended application when SAP-delivered application is deployed on SAPUI5 ABAP Repository url: "/sap/bc/ui5_ui5/sap/fin_gl_litb" // we use a URL relative to our own component // extension application is deployed with customer namespace }); this.fin.gl.lineitembrowser.display.Component.extend("fin.gl.lineitembrowser.display.FIN_GL_LITBEx2.Component", { metadata: { manifest: "json" } });

former_member189220
Active Contributor
0 Kudos

Is it possible there to be a syntax error in the manifest.json file. Would you please attach it to have a look?

0 Kudos

manifest.txt

here is the manifest json file