on 09-20-2017 11:42 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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" } });
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.