cancel
Showing results for 
Search instead for 
Did you mean: 

ModuleError: failed to load 'unit/unitTests.qunit.js'

Lesedi
Explorer
0 Kudos

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: 

ui5loader-dbg.js:1188 Uncaught (in promise) ModuleError: failed to load 'unit/unitTests.qunit.js' from ../../resources/unit/unitTests.qunit.js: script load error

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.

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.

Lesedi_0-1713382263046.png

 

Accepted Solutions (0)

Answers (0)