title: How to find location of failing import source in angular
body: <p>I have inherited a large angular codebase, and when I run it (using gulp if that matters), the page partially loads, and looking at the dev panel shows that a module has failed to load.</p>
  
  <p>Here is the trace:</p>
  
  <blockquote>
    <p>Error: [$injector:modulerr] Failed to instantiate module app due to:<br>
    [$injector:modulerr] Failed to instantiate module app.someModule due<br>
    to: [$injector:nomod] Module 'app.someModule' is not available! You 
    either misspelled the module name or forgot to load it. If registering 
    a module ensure that you specify the dependencies as the second 
    argument.<br>
    <a href="http://errors.angularjs.org/1.4.7/" rel="nofollow">http://errors.angularjs.org/1.4.7/</a>$injector/nomod?p0=app.someModule<br>
    minErr/&lt;@<a href="http://localhost:3000/bower_components/angular/angular.js:68:12" rel="nofollow">http://localhost:3000/bower_components/angular/angular.js:68:12</a><br>
    module/&lt;@<a href="http://localhost:3000/bower_components/angular/angular.js:1986:1" rel="nofollow">http://localhost:3000/bower_components/angular/angular.js:1986:1</a><br>
    ensure@<a href="http://localhost:3000/bower_components/angular/angular.js:1910:38" rel="nofollow">http://localhost:3000/bower_components/angular/angular.js:1910:38</a><br>
    module@<a href="http://localhost:3000/bower_components/angular/angular.js:1984:1" rel="nofollow">http://localhost:3000/bower_components/angular/angular.js:1984:1</a><br>
    loadModules/&lt;@<a href="http://localhost:3000/bower_components/angular" rel="nofollow">http://localhost:3000/bower_components/angular</a>  /angular.js:4390:22<br>
    forEach@<a href="http://localhost:3000/bower_components/angular/angular.js:336:11" rel="nofollow">http://localhost:3000/bower_components/angular/angular.js:336:11</a><br>
    loadModules@<a href="http://localhost:3000/bower_components/angular" rel="nofollow">http://localhost:3000/bower_components/angular</a>  /angular.js:4374:5<br>
    loadModules/&lt;@<a href="http://localhost:3000/bower_components/ang" rel="nofollow">http://localhost:3000/bower_components/ang</a></p>
  </blockquote>
  
  <p>Is there a way to find out where angular is trying to find the module from (i.e. either the module code, or the code that implicitly relies on that code)?</p>
  
  <p>For what its worth, a simple text search for "someModule" returns far too many hits.</p>