Skip to Content

Problem with SAPUI5 library reference in Web IDE template projects

Hi Experts,

I am using the HCP based Web IDE using my trial account to create a project using the Fiori Worklist template, which connects to the ES4 demo gateway system to fetch and display data.

When I run the project from Web IDE by selecting Run -> App a new tab opens with a blank page with no output. When I check the browser console I see the below error message:

However, when I replace the reference to the sap-ui-core.js in index.html bootstrap script tag from src="resources/sap-ui-core.js" to src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js" can see the output just fine.

Does anyone know why is Web IDE not able to resolve the relative path to the SAPUI5 core?

Regards,

Saurabh

Capture.JPG (47.0 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Jul 18, 2016 at 11:13 AM

    Hello Saurabh,

    do you have the route information for the UI5 resource in your projects neo-app.json file?

      "routes": [
        {
          "path": "/resources",
          "target": {
            "type": "service",
            "name": "sapui5",
            "entryPath": "/resources"
          }
        }
      ]
    

    Regards,

    Florian

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Florian,

      Thanks for your response!

      Yes, I do have the below route for the UI5 resource in the neo-app.json file of my project.

            "path": "/resources",
            "target": {
              "type": "service",
              "name": "sapui5",
              "version": "snapshot",
              "entryPath": "/resources"
            }
      

      Regards,

      Saurabh

  • Posted on Jul 18, 2016 at 01:52 PM

    Hi,

    The below link might help you.

    Regards

    Pranav

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 19, 2016 at 04:37 AM

    Try again with slash at first.

    src="/resources/sap-ui-core.js"

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 19, 2016 at 06:27 AM

    Sorry:) ..Please find below link.

    Add a comment
    10|10000 characters needed characters exceeded

    • Thanks for the link Pranav, but I already have the route defined for the UI5 resource in the neo-app.json file in the project as indicated in the link you provided.

           "path": "/resources",
            "target": {
              "type": "service",
              "name": "sapui5",
              "version": "snapshot",
              "entryPath": "/resources"
            }
      
  • author's profile photo Former Member
    Former Member
    Posted on Jul 19, 2016 at 02:34 PM

    Instead of src="resources/sap-ui-core.js", have you tried src="../../resources/sap-ui-core.js"?

    Sometimes that works for me.

    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.