Skip to Content

TypeError: sap.ui.app is undefined

Based on the blog post Developing a simple List based SAPUI5 Application I am trying to create the exact same application. But I am facing the below error and the application fails to load.

All help appreciated.

pastedImage_0.png (24.6 kB)
pastedImage_0.png (13.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    May 02, 2014 at 03:34 AM

    Hi Sridhar,

    sap.ui.app is not a library..plese include this sap.ui.commons replacing sap.ui.app..I hope this will solve your issue..

    Thanks and regards,

    Ashish Kumar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 02, 2014 at 02:10 AM

    Looks like core SAPUI5 js libraries were not loaded i.e bootstrapping of sapui5.core.js could be missing.

    Please check index.html and see  if core js libraries for SAPUI5 did get loaded first. Pls share that too. I see lot of files not found which should be checked first as some core js files for sapui5 first get loaded then your app starts i.e bootstrapping step should be successful.

    thanks
    A

    Add comment
    10|10000 characters needed characters exceeded

    • The application was created by the Wizard.

      Here you go the index.html...

      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta http-equiv='Content-Type' content='text/html;charset=UTF-8' />
      <link rel="stylesheet" href="app/css/MobileStyles.css">
      <!-- src Location of SAP UI5 libraries need to be changed to refer to right location -->
      <script src="resources/sap-ui-core.js" id="sap-ui-bootstrap"
        type="text/javascript" data-sap-ui-libs="sap.m, sap.ui.app">
        </script>
      <script>
      

      I checked rechecked, but I am not able to understand why Application.js is in error.

  • Jul 23, 2014 at 05:39 PM

    Hi Sridhar,

    Were you able to resolve this issue? If yes, could you please help me with the same as i am facing the same issue. TIA.

    Regards,

    Sumit Jindal

    Add comment
    10|10000 characters needed characters exceeded