cancel
Showing results for 
Search instead for 
Did you mean: 

Libraries missing when extending SAP Fiori App in SAP WebIDE?

Former Member
0 Kudos

Hi Experts,

I am trying to extend an existing Fiori App using Web IDE. When I export the code and try to extend and run it in WebIDE, I get an error that library is missing (which is part of the original app) and nothing renders. However the original app is working fine in Fiori Launchpad.

Even when I try to checkout the original app code and just run that, I get the same error when running in WebIDE.

Anyone else experiencing this issue and how did they resolve it?

I am experiencing this issue for Request Maintenance app.

Error message in console:

Uncaught Error: failed to load 'sap/i2d/eam/lib/pmnotification/s1/library.js' from resources/sap/i2d/eam/lib/pmnotification/s1/library.js: 404 - Not Found

If the file is missing, then the original app should not work too. Is there anything I am missing when I try to extend the code in WebIDE? Maybe any configuration I need to do?

Accepted Solutions (0)

Answers (1)

Answers (1)

boris_tsirulnik
Participant

Hi,

You are missing a block which points to the reuse library.

This block is generated in the extension project based on the application metadata and when this info is missing in the application, the block is not generated.

Please add this block to the neo-app.json file:

(Replace the <ABAP System Destination> with the actual destination name. You can find it in other blocks in neo-app.json file)

    {
      "path": "/resources/sap/i2d/eam/lib/pmnotification/s1",
      "target": {
        "type": "destination",
        "name": "<ABAP System Destination>",
        "entryPath": "/sap/bc/ui5_ui5/sap/eam_ntf_reuses1",
        "preferLocal": true
      },
      "description": "sap/i2d/eam/lib/pmnotification/s1 Reuse Library"
    }

Regards,

Boris

christian102094
Participant
0 Kudos

This worked!!!

In my case it was:

    {
      "path": "/resources/sap/fin/central/lib",
      "target": {
        "type": "destination",
        "name": "<ABAP System destination>",
        "entryPath": "/sap/bc/ui5_ui5/sap/fin_lib",           
        "preferLocal": true
      },
      "description": "sap/bc/ui5_ui5/sap/fin_lib Reuse Library"
    }