如何在角度

时间:2015-11-11 16:12:16

标签: angularjs angular-module

我继承了一个大的角度代码库,当我运行它时(如果重要的话使用gulp),页面部分加载,并且查看开发面板显示模块无法加载。

这是跟踪:

  

错误:[$ injector:modulerr]由于以下原因无法实例化模块应用:
  [$ injector:modulerr]无法实例化模块app.someModule到期   to:[$ injector:nomod]模块'app.someModule'不可用!您   要么错误拼写模块名称,要么忘记加载它。如果注册   模块确保您将依赖项指定为第二个   论点。
  http://errors.angularjs.org/1.4.7/ $注射器/ NOMOD?P0 = app.someModule
  minErr /< @ http://localhost:3000/bower_components/angular/angular.js:68:12
  模块/< @ http://localhost:3000/bower_components/angular/angular.js:1986:1
  确保@ http://localhost:3000/bower_components/angular/angular.js:1910:38
  模块@ http://localhost:3000/bower_components/angular/angular.js:1984:1
  loadModules /< @ http://localhost:3000/bower_components/angular /angular.js:4390:22
  的forEach @ http://localhost:3000/bower_components/angular/angular.js:336:11
  loadModules @ http://localhost:3000/bower_components/angular /angular.js:4374:5
  loadModules /< @ http://localhost:3000/bower_components/ang

有没有办法找出角度试图找到模块的位置(即模块代码或隐式依赖该代码的代码)?

对于它的价值,对“someModule”的简单文本搜索会返回太多的点击。

0 个答案:

没有答案