Skip to Content
0

error “URI is already relative” in sapui5

Oct 25, 2017 at 02:29 PM

55

avatar image
Former Member

I have a project built with sapui5 developed on webide running like a charm, but when i export my project and try to run it from my desktop i get the following error "URI is already relative". Also i'm working on a virtual machine(citrix), when i export my project on my real machine , the application works with no error but on the virtual machine it doesn't work. Is there a solution ?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Sharath M G Oct 26, 2017 at 08:38 AM
0

Can you try to replace the script value from "src="resources/sap-ui-core.js"" to "src="https://sapui5.hana.ondemand.com/1.32.7/resources/sap-ui-core.js""?

Regards,

Sharath

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

I'm already referencing my library by this way src="HTTPS://sapui5.hana.ondemand.com/1.44.6/resources/sap-ui-core.js"

Note that even if i change with a previous library, i'm still getting the same error.

0

Did you check the colsole error log. At which line is the error getting raised?

0
Former Member

I'm getting the error on the file sap-ui-core.js at the line 2971

img.png (32.6 kB)
img2.png (21.1 kB)
0
avatar image
Former Member Oct 30, 2017 at 12:26 PM
0

I am always facing the same error. Do anyone have any suggestion ??

Share
10 |10000 characters needed characters left characters exceeded
Irfan Gokak Oct 26, 2017 at 06:53 AM
0

Hi Yassine,

You're running it from eclipse?

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

No i exported my application and i'm running it outside from webide, by lunching the index.html

0

It doesn't work. You should run it on localhost. You can run like this. Import in eclipse and try executing it.

0
Former Member

My client need is that the application will be standalone, by this it doesn't need a web server or eclipse or other. All i need is to lunch the index.html after exporting my application.

0