Skip to Content
-1
May 31, 2020 at 07:00 PM

Failed to load js file

1494 Views

In a controller.js file, I want to reference a BaseController situated in another place. So at the top of the controller.js file I used:

sap.ui.define([

"../../controller/BaseController.controller",

"sap/ui/core/mvc/Controller",

"sap/ui/core/UIComponent"

], function (BaseController, Controller, UIComponent) {

But get a status 404 not found when loading the BaseContriller. the path for the file is indeed wrong: https://sapui5.hana.ondemand.com/resources/.../controller/BaseController.controller.js

Any idea how to get it right ?