Search code examples
sapui5

sapui5 : typeERROR : i is not a constructor


I faced a problem while establishing a navigation between views, so have you an idea about the meaning of that sentence :

i is not a constructor

what is "i" exactly ?

screenshot about "i is not a constructor"


Solution

  • check location of controller and controller name in both view. xml and controller.js.

    Example:

    In view. xml

    controller Name="logicalName.controller.ControllerName"

    In controller. js The place where you are defining controller name

    return Controller. extend("logicalName.controller.ControllerName", { }) ;