cancel
Showing results for 
Search instead for 
Did you mean: 

Uncaught Error: found in negative cache: 'fcg/mdg/mychangerequest/Component.js' from /sap/bc/ui5_ui5/sap/ZMDG_My_REQ/Component.js: TypeError: Cannot read property 'extend' of undefined

former_member1129777
Participant
0 Kudos

Hi All,

I have extended "Track My Request" App and deployed on to SAPUI5 repository. When I try to opne the  extended App from Launchpad  I get the below  error.

Uncaught Error: found in negative cache: 'fcg/mdg/mychangerequest/Component.js' from /sap/bc/ui5_ui5/sap/ZXXX-YYYY/Component.js: TypeError: Cannot read property 'extend' of undefined

Thanks in Advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Lakshmi,

Share your component.js code.

Regards,

Viswa

former_member1129777
Participant
0 Kudos

jQuery.sap.declare("fcg.mdg.mychangerequest.ZMDG_MY_REQUEST.Component");

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

sap.ui.component.load({

   name: "fcg.mdg.mychangerequest",

   // 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/MDG_MY_REQ" // we use a URL relative to our own component

     // extension application is deployed with customer namespace

});

this.fcg.mdg.mychangerequest.Component.extend("fcg.mdg.mychangerequest.ZMDG_MY_REQUEST.Component", {

   metadata: {

     version: "1.0",

     config: {},

     customizing: {

       "sap.ui.controllerExtensions": {

         "fcg.mdg.mychangerequest.view.S1": {

           "controllerName": "fcg.mdg.mychangerequest.ZMDG_MY_REQUEST.view.S1Custom"

         }

       }

     }

   }

});

Former Member
0 Kudos

Hi Lakshmi,

Component.js is fine no issues with it .check extended controller once. This error is coming up only in Launchpad or Web IDE too?

Regards,

Viswa

former_member1129777
Participant
0 Kudos

Hi Viswa,

the error is coming up when I load the App from Launchpad.

Regards,

Lakshmi

Former Member
0 Kudos

Hi Lakshmi,

In SICF is that node active?. Check app configuration in LPD_CUST component name in additional information. If configurations are correct put a break-point and check where it is failing ?

Regards,

Viswa

former_member185875
Contributor
0 Kudos

Hi Lakshmi,

Addition to Viswa's points, after deployment UI5 app to Gateway server.

Login to back-end open UI5 application through SE80 --> BSP Applicaiton --> <UI5 Application name>

cross check "UI5RepositoryPathMapping.xml" file.

    <MappingEntry

    path              = "Component.js"

    is_folder         = ""

    internal_rep      = "B"

    internal_rep_path = "Component.js" />

If your using UI5 > 1.28.X  version.

"Component.js" will be under "webapp" folder then change mapping as below.

  <MappingEntry

    path              = "/webapp/Component.js"

    is_folder         = ""

    internal_rep      = "B"

    internal_rep_path = "Component.js" />

Save and activate. Try launching the application.

Thanks,

Lakshman Balanagu.

former_member1129777
Participant
0 Kudos

HI Viawa,

Have checked the node is active under SICF. Where do i need to place break-point?

former_member1129777
Participant
0 Kudos

Hi Lakshman,

I  have checked the file UI5RepositoryPathMapping.xml. Its shows correct path for component.js.



Former Member
0 Kudos

Hi Lakshmi,

Check where extend word is there in the app files.and  error in the console.Try to comment extended controller code and run the app so that you will get to know the problem with the extended controller or not.

Regards,

Viswa

Former Member
0 Kudos

This is usually a syntax error.  Have you checked the Component.js to see if there are any javascript syntax errors?  Sometimes I'll use something like this online viewer just to check for syntax errors.

The Online Lint