After working on my ionic app without any issues, I restarted my computer only to find that when I tried to run the project again, I was met with a blank white screen on both the browser and device. Even when I reverted back to an earlier branch, the URL continued to flicker between "localhost:8100" and "localhost:8100/some-route". It seems like there may be a problem with the structure of my app.js file causing one of the routes not to resolve correctly.
The structure of my app.js file is as follows, but I'm unsure if this is where the issue lies. Any advice on best practices for structuring would be appreciated in case the problem is related to resolving states. Thank you for any help provided.
angular.module('underscore', [])
.factory('_', function() {
return window._;
});
angular.module('myapp', [...])
.constant(...)
.config(function(...) {
var resolve = {
<auth promise for route access>
return defer.promise;
}
$http(<setup for http requests headers>);
$stateProvider.state('app.some-route', {
resolve: resolve,
... all my routes, some of which resolve ...
})
.run(function(...);