Resolved :)
After much headache, I found out that this is causing the issue:
define([..., 'durandal/plugins/router',...]
When I remove this and it was resolved.
EDIT:- Following is define function inside my main.js
file.
define(['durandal/system', 'durandal/app', 'durandal/viewLocator'
, 'service/logger'],
function (system, app, viewLocator, logger) {
system.debug(true);
app.configurePlugins({
router: true,
dialog: true,
widget: true
});
app.start().then(function () {
viewLocator.useConvention();
app.setRoot('viewmodels/shell', 'entrance');
//router.mapUnknownRoutes(function (instruction) {
// logger.logError('No router found', instruction, 'main', true);
//});
});
});