SAP Knowledge Base Article - Preview

2323309 - Uncaught ReferenceError when running a deployed SAPUI5 application

Symptom

After using the SAP WebIDE to create a simple SAPUI5 project, it works correctly from Web IDE, but when the application is deployed in the backend it does not run properly. The browser debugger shows an error similar to this one:

    Uncaught ReferenceError: sap is not defined

Which means that the SAPUI5 resources are not correctly addressed in the application and cannot be found.

This KBA intends to explain how the resources must be addressed in the application when working with the WebIDE.

 


Read more...

Environment

SAPUI5, SAP WebIDE,  SAPNetWeaver ABAP or Java

Product

UI add-on 1.0 for SAP NetWeaver 7.0 ; UI add-on 1.0 for SAP enhancement package 1 for SAP NetWeaver 7.0 ; UI add-on 1.0 for SAP enhancement package 2 for SAP NetWeaver 7.0 ; UI add-on 1.0 for SAP enhancement package 3 for SAP NetWeaver 7.0 ; UI add-on 2.0 for SAP NetWeaver

Keywords

SAPUI5, WebIDE, uncaught ReferenceError, src=“/resources/sap-ui-core.js“, resources , KBA , CA-UI5-COR , SAP UI5 Core and Runtime , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.