Can you try this?
Add Router in your sap.ui.define of the app.controller.js
sap.ui.define(["app/controller/BaseController",
"namespace/Router"], function(BaseController,Router) {
"use strict";
return Router.extend("..namespace.controller.ViewName", {
onInit: function() {
.......
}
Regards