My angular app runs flawlessly on computer#1, but when I clone the git repo on computer#2 and run npm install
, bower install
, and grunt bower-install
, things start to fail.
After some research, it seems that the issue might be due to ng-route not being included, although 'view source' does indicate that ng-route was successfully included:
<!-- build:js(app) scripts/vendor.js -->
<!-- bower:js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-resource/angular-resource.js"></script>
<script src="bower_components/angular-cookies/angular-cookies.js"></script>
<script src="bower_components/angular-sanitize/angular-sanitize.js"></script>
<script src="bower_components/angular-route/angular-route.js"></script>
<script src="bower_components/Chart.js/Chart.js"></script>
<script src="bower_components/angular-chart.js/dist/angular-chart.js"></script>
<script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.js"></script>
<script src="bower_components/d3/d3.js"></script>
<script src="bower_components/codemirror/lib/codemirror.js"></script>
<script src="bower_components/angular-ui-codemirror/ui-codemirror.js"></script>
<!-- endbower -->
<!-- endbuild -->
Furthermore, my app.js file does include ngRoute
in the dependencies, and the routes are defined correctly:
angular.module('myApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute',
'chart.js',
'ui.bootstrap',
'ui.codemirror'
])
Upon checking, all dependencies seem to have loaded properly, and the versions of angular-route.js
are different between the working and non-working sites:
- Working site: route v1.3.14
- Non-working site: route v1.3.15
Unfortunately, the error message in the console doesn't offer much insight into the root cause. How can I go about debugging this issue?