<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Uncaught Error: The specified component controller 'opensap.myapp.Component' could not be found! in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/uncaught-error-the-specified-component-controller-opensap-myapp-component/qaa-p/630557#M156290</link>
    <description>&lt;P&gt;EDIT: Nevermind, I got it to work by using src="../resources/sap-ui-core-dbg.js"&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Hi Jun,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thank you for your response. I tried referencing your suggested CDN link, but it still doesn't work. I also tried referencing the local resources folder, without success.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I tried using a different device however, and now I get an error stating that sap is not defined in my index.html. Again I tried using:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;"https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;"https://sapui5.hana.ondemand.com/resources/sap-ui-core-dbg.js"&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;"../resources/sap-ui-core.js"&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;"../resources/sap-ui-core-dbg.js"&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;But all without success.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 17 Apr 2018 07:50:32 GMT</pubDate>
    <dc:creator>RVH</dc:creator>
    <dc:date>2018-04-17T07:50:32Z</dc:date>
    <item>
      <title>Uncaught Error: The specified component controller 'opensap.myapp.Component' could not be found!</title>
      <link>https://community.sap.com/t5/technology-q-a/uncaught-error-the-specified-component-controller-opensap-myapp-component/qaq-p/630555</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I'm currently in the process of creating a SAP Fiori mobile app. I mobilized the app using HAT, which worked perfectly, and imported the corresponding Android platform build into Android Studio. When I try to run the app, the splash screen shows up on the device screen, but after that it just shows a white screen. When debugging I noticed this error:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/128175-component-dbg.png" /&gt;&lt;/P&gt;
  &lt;P&gt;I'm pretty new to SAPUI5 and Cordova, but I assume this means that my Component.js file isn't getting initialized? I double checked the name of the component and this seems to be fine.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Component.js:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;sap.ui.define([
   "sap/ui/core/UIComponent"
], function (UIComponent) {
   "use strict";

   return UIComponent.extend("opensap.myapp.Component", {

      metadata : {
         manifest: "json"
      },

      init : function () {
         // call the init function of the parent
         UIComponent.prototype.init.apply(this, arguments);
         // additional initialization can be done here
         this.getRouter().initialize();
      }

   });
});&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;index.html:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
   &amp;lt;head&amp;gt;
      &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge" /&amp;gt;
      &amp;lt;meta charset="UTF-8"&amp;gt;
      &amp;lt;title&amp;gt;MobileEventApp&amp;lt;/title&amp;gt;
      
      &amp;lt;script
         id="sap-ui-bootstrap"
         src="https://sapui5.hana.ondemand.com/resources/sap-ui-core-dbg.js"
         data-sap-ui-theme="sap_bluecrystal"
         data-sap-ui-libs="sap.m"
         data-sap-ui-compatVersion="edge"
         data-sap-ui-preload="async"
         data-sap-ui-resourceroots='{"opensap.myapp": "./"}'&amp;gt;
      &amp;lt;/script&amp;gt;

      &amp;lt;script&amp;gt;
         sap.ui.getCore().attachInit(function () {
            new sap.ui.core.ComponentContainer({
               name : "opensap.myapp"
            }).placeAt("content");
         });
      &amp;lt;/script&amp;gt;

   &amp;lt;/head&amp;gt;
   &amp;lt;body class="sapUiBody" id="content"&amp;gt;
   &amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Project structure:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/128176-structure.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I'm not really sure how to continue. Does anyone have a solution for this?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 20:01:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/uncaught-error-the-specified-component-controller-opensap-myapp-component/qaq-p/630555</guid>
      <dc:creator>RVH</dc:creator>
      <dc:date>2018-04-16T20:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught Error: The specified component controller 'opensap.myapp.Component' could not be found!</title>
      <link>https://community.sap.com/t5/technology-q-a/uncaught-error-the-specified-component-controller-opensap-myapp-component/qaa-p/630556#M156289</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"

can you use that in the html?&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 20:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/uncaught-error-the-specified-component-controller-opensap-myapp-component/qaa-p/630556#M156289</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2018-04-16T20:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught Error: The specified component controller 'opensap.myapp.Component' could not be found!</title>
      <link>https://community.sap.com/t5/technology-q-a/uncaught-error-the-specified-component-controller-opensap-myapp-component/qaa-p/630557#M156290</link>
      <description>&lt;P&gt;EDIT: Nevermind, I got it to work by using src="../resources/sap-ui-core-dbg.js"&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Hi Jun,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thank you for your response. I tried referencing your suggested CDN link, but it still doesn't work. I also tried referencing the local resources folder, without success.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I tried using a different device however, and now I get an error stating that sap is not defined in my index.html. Again I tried using:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;"https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;"https://sapui5.hana.ondemand.com/resources/sap-ui-core-dbg.js"&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;"../resources/sap-ui-core.js"&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;"../resources/sap-ui-core-dbg.js"&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;But all without success.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Apr 2018 07:50:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/uncaught-error-the-specified-component-controller-opensap-myapp-component/qaa-p/630557#M156290</guid>
      <dc:creator>RVH</dc:creator>
      <dc:date>2018-04-17T07:50:32Z</dc:date>
    </item>
  </channel>
</rss>

