Skip to Content
0

How to add libraries into menifest in sapui5

Apr 19, 2017 at 04:29 PM

77

avatar image
Former Member

I've deployed a sapui5 project on cloud foundry from webide. it run fine when i just click on run localy. but it gives me this error when i'm deploying on cloud foundry. I think its because i'm using a custom control which is using some additional js files and. So i want to ask how i can add this component information into menifest file.

menefest.png (121.1 kB)
code-editor.png (20.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Srikanth KV Apr 19, 2017 at 04:48 PM
0

in manifest add in the section sap.ui.5.resources -->here you can attach individual JS files...

https://sapui5.hana.ondemand.com/#docs/guide/be0cf40f61184b358b5faedaec98b2da.html

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

I've done like that. but still error is there

"openSourceComponents": [ 
            {
                "name": "sap/ui/codetools/CodeEditor.js",
                "packagedWithMySelf": true 
            }
        ]

0

try using "resources" in sap.ui5

    "sap.ui5": { //SAPUI5-specific attributes - in sap.ui5 namespace

        "resources":{
            "js": [{
                "uri": "sap/ui/codetools/CodeEditor.js" //mandatory
            }]
        }
0
Former Member

I've tried this one. it also not working

menifest.png (118.9 kB)
0