I am trying to view my app after running Grunt Build. I use grunt serve:dist to see all production ready build but in the browser I get an infinite loop saying:
I ran into this issue and found that the problem occurred in my karma.conf.js file.
When specifying which file patterns to load into the browser, I used a wild card identifier to load AngularJS like so:
'path_to_angular/angular/*.js
If there's more than one file loading AngularJS within that directory, like angular.js and angular.min.js for example, then this error will be thrown.
To avoid this error, simply specify a single path with no wildcards.
'path_to_angular/angular/angular.js'
or
'path_to_angular/angular/angular.min.js'
should do the trick.