Skip to Content
avatar image
Former Member

Libraries missing when extending SAP Fiori App in SAP WebIDE?

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 27, 2016 at 03:22 PM

    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

    Add comment
    10|10000 characters needed characters exceeded