Skip to Content

Missing resources folder, when deploying SAPUI5 App to Neo Environment

Hi Experts,

I am trying to deploy my SAPUI5 Application to my Neo Environment. In the Application I use an OData Service and the UserAPI.

When I deploy using "/resources/sap-ui-core.js" as a source for the script in index.html, i get a 404 Error (it cannot find the file), however when I run the Application from the WebIDE, it works perfectly fine.

When I deploy using "https://sapui5.hana.ondemand.com/resources/sap-ui-core.js" as a source for the scipt in index.html, it fails to load the OData Destination and the UserAPI (the rest of the app works) and I get following errors:

I am assuming that it does not find my neo-app.js file, where I reference the UserAPI and the Destination.

Is this a bug, or is there an other way to deploy my app without any problems?

Thanks in advance

Noa Junod

capture.png (62.3 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 22 at 10:19 AM

    Dear Noa Junod,

    Please keep the /resources/sap-ui-core.js as it is , as you said issue is with the neo-app.json file

    neo-app.json file was not being included in the “dist” folder when the Web IDE builds the app as a reason after deploying you will get "No destination required" in Required Destinations under

    https://<region>.ondemand.com/cockpit/#/acc/<subaccount>/html5app/<you app>/dashboard

    Thanks you Lucas Vaccaro for helping in identifying the root cause.

    So few things to note here in ui5.yaml
    - app-name
    - namespace
    You can find your namespace under manifest.json

    Please maintain the same in ui5.yaml i.e com/tes/nameSpace
    as "sap.app.id" is the combination of <namespace.projectname>

    if in your case namespace is empty ie. "id":TacticTool
    Please keep the ui5.yaml>namespace empty**

    Build and deploy the project.

    **Note the above empty namespace is not recommended as Namespace is a mandatory field if you are creating a ui5 application from template now a days

    Follow this to know this in more details Reference:ui5uild

    Hope so this help.

    Regards,
    Bibhu


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 22 at 04:44 AM

    As you guessed, if we make few changes in neo-app.json, will fix this issue.

    To give you a pointer, try to changes resources folder path in neo-app.json , try as /webapp/resources ... like that

    Best of luck

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.