<?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: Demo.controller.js:24 Uncaught TypeError: Cannot read property 'getResourceBundle' of undefined in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/demo-controller-js-24-uncaught-typeerror-cannot-read-property/qaa-p/699295#M189404</link>
    <description>&lt;P&gt;Your model i8n model is not instantiated, please check where you are creating the i18n model(Component or manifest.json) and see the code is written correctly there.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
    <pubDate>Wed, 28 Nov 2018 06:46:19 GMT</pubDate>
    <dc:creator>maheshpalavalli</dc:creator>
    <dc:date>2018-11-28T06:46:19Z</dc:date>
    <item>
      <title>Demo.controller.js:24 Uncaught TypeError: Cannot read property 'getResourceBundle' of undefined</title>
      <link>https://community.sap.com/t5/technology-q-a/demo-controller-js-24-uncaught-typeerror-cannot-read-property/qaq-p/699294</link>
      <description>&lt;P&gt;I have included the Resource Model in manifest.json and I am referring to that resource in Controller. I am facing &lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;EM&gt;Demo.controller.js:24 Uncaught TypeError: Cannot read property 'getResourceBundle' of undefined.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;manifest.json...&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/244587-resourcecontroller.png" /&gt;&lt;/P&gt;
  &lt;P&gt;controller&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/244588-resourcecontroller.png" /&gt;&lt;/P&gt;
  &lt;P&gt;logs...&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/244589-resourcelogs.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 05:45:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/demo-controller-js-24-uncaught-typeerror-cannot-read-property/qaq-p/699294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-28T05:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Demo.controller.js:24 Uncaught TypeError: Cannot read property 'getResourceBundle' of undefined</title>
      <link>https://community.sap.com/t5/technology-q-a/demo-controller-js-24-uncaught-typeerror-cannot-read-property/qaa-p/699295#M189404</link>
      <description>&lt;P&gt;Your model i8n model is not instantiated, please check where you are creating the i18n model(Component or manifest.json) and see the code is written correctly there.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 06:46:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/demo-controller-js-24-uncaught-typeerror-cannot-read-property/qaa-p/699295#M189404</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2018-11-28T06:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Demo.controller.js:24 Uncaught TypeError: Cannot read...</title>
      <link>https://community.sap.com/t5/technology-q-a/demo-controller-js-24-uncaught-typeerror-cannot-read-property/qaa-p/13622869#M4820153</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I also get the same error in my code and when I added these line of code in my&amp;nbsp;&lt;STRONG&gt;manifest.json&lt;/STRONG&gt; file.It worked properly. So, I advice try to add these below lines of code while defining model in your &lt;STRONG&gt;manifest.json.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"models"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"i18n"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"type"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"sap.ui.model.resource.ResourceModel"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"settings"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"bundleName"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"i18n/i18n.properties"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"uri"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"sap.ui.demo.i18n.i18n.properties"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"preload"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Harsh Arya&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Feb 2024 17:15:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/demo-controller-js-24-uncaught-typeerror-cannot-read-property/qaa-p/13622869#M4820153</guid>
      <dc:creator>harsharya1011</dc:creator>
      <dc:date>2024-02-28T17:15:46Z</dc:date>
    </item>
  </channel>
</rss>

