<?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: ModuleError: failed to load 'unit/unitTests.qunit.js' in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/moduleerror-failed-to-load-unit-unittests-qunit-js/qaa-p/13692647#M4828439</link>
    <description>&lt;P&gt;You need to specify the namespace for the unit tests as well. please try to use&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;data-sap-ui-resourceroots&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'{"student10.com.sap.training.ux402.qunit/ux402_qunit": "../../",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"unit": "."}' in your&amp;nbsp;unitTests.qunit.html file&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 06 May 2024 12:35:14 GMT</pubDate>
    <dc:creator>F_Heyde</dc:creator>
    <dc:date>2024-05-06T12:35:14Z</dc:date>
    <item>
      <title>ModuleError: failed to load 'unit/unitTests.qunit.js'</title>
      <link>https://community.sap.com/t5/technology-q-a/moduleerror-failed-to-load-unit-unittests-qunit-js/qaq-p/13673801</link>
      <description>&lt;P&gt;I copied the code as it is on the SAPUI5 learning Journey, however I get an error when running the unit tests. Please see the message of the error below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;ui5loader-dbg.js:1188&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;Uncaught (in promise) &lt;SPAN class=""&gt;ModuleError: failed to load 'unit/unitTests.qunit.js' from ../../resources/unit/unitTests.qunit.js: script load error&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;What I notice on the error message is that the framework looks for the unit test file in this path (../../resources/unit/unitTests.qunit.js), however I don't have a resources folder in my project.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Failing to load modules also happened when doing the exercise with control extension and custom controls, UI5 framework seems to fail to load files that aren't standard views and controllers.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lesedi_0-1713382263046.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/97791iCA00CDF76A147416/image-dimensions/772x242?v=v2" alt="Lesedi_0-1713382263046.png" title="Lesedi_0-1713382263046.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 19:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/moduleerror-failed-to-load-unit-unittests-qunit-js/qaq-p/13673801</guid>
      <dc:creator>Lesedi</dc:creator>
      <dc:date>2024-04-17T19:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: ModuleError: failed to load 'unit/unitTests.qunit.js'</title>
      <link>https://community.sap.com/t5/technology-q-a/moduleerror-failed-to-load-unit-unittests-qunit-js/qaa-p/13692647#M4828439</link>
      <description>&lt;P&gt;You need to specify the namespace for the unit tests as well. please try to use&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;data-sap-ui-resourceroots&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'{"student10.com.sap.training.ux402.qunit/ux402_qunit": "../../",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"unit": "."}' in your&amp;nbsp;unitTests.qunit.html file&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 May 2024 12:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/moduleerror-failed-to-load-unit-unittests-qunit-js/qaa-p/13692647#M4828439</guid>
      <dc:creator>F_Heyde</dc:creator>
      <dc:date>2024-05-06T12:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: ModuleError: failed to load 'unit/unitTests.qunit.js'</title>
      <link>https://community.sap.com/t5/technology-q-a/moduleerror-failed-to-load-unit-unittests-qunit-js/qaa-p/14104206#M4914314</link>
      <description>i am getting the same error can you help please</description>
      <pubDate>Sat, 17 May 2025 08:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/moduleerror-failed-to-load-unit-unittests-qunit-js/qaa-p/14104206#M4914314</guid>
      <dc:creator>Soumyata</dc:creator>
      <dc:date>2025-05-17T08:49:55Z</dc:date>
    </item>
  </channel>
</rss>

