In your app.js
when giving the dependencies to angular
you should give it as 'ui.bootstrap'
(this is the correct module name) and not your custom name which you defined in main.js
.
So your app.js
would look like:
define([
'angular',
'uiBootstrap',
...
], function (ng) {
'use strict';
return ng.module('app', [
...
'ui.bootstrap'
]);
});