cancel
Showing results for 
Search instead for 
Did you mean: 

Can't run fiori app MyAccounts extension from WEBIDE

ajaygupta
Participant
0 Kudos

I am trying to create an extension project myaccounts from sap ui5 abap repository.
But getting the following console message
'failed to load 'sap/cus/crm/lib/reuse/library-preload'

Accepted Solutions (1)

Accepted Solutions (1)

former_member25364
Participant

Hello

In the Component.js file, add the library path between the declaration line and the component load line as :

jQuery.sap.declare(...);

(function() { jQuery.sap.registerModulePath("sap.cus.crm.lib.reuse", "/sap/bc/ui5_ui5/sap/crm_lib_reuse/sap/cus/crm/lib/reuse"); }());

// use the load function for getting the optimized preload file if present

sap.ui.component.load({....

Best regards

Emmanuel Da Costa

Former Member
0 Kudos

Hello,

still i can not run my extended App in WebIDE, althogh I take this Information for my Quellcode:

jQuery.sap.declare("de.custo.z_extension.Component");
// https://archive.sap.com/discussions/message/16382862#16382862 -> external library...
(function() {
jQuery.sap.registerModulePath("com.company.ui5app.product", "/sap/bc/ui5_ui5/companye/product");
}());
jQuery.sap.require("com.company.ui5app.product");
// use the load function for getting the optimized preload file if present
sap.ui.component.load({
name: "com.company.ui5app.product",
// Use the below URL to run the extended application when SAP-delivered application is deployed on SAPUI5 ABAP Repository
url: "/sap/bc/ui5_ui5/companye/product"
// we use a URL relative to our own component
// extension application is deployed with customer namespace
});

may sby of you can give me an information, why i still get this strange "component.js" Console-error and app is not loaded:

Uncaught Error: failed to load 'de/custo/z_extension/Component.js' from ./Component.js: Error: failed to load 'com/company/ui5app/product/Component.js' from /sap/bc/ui5_ui5/companye/product/Component-dbg.js

Answers (0)