0

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

这是跟踪:

错误:[$injector:modulerr] 无法实例化模块应用程序,原因是:
[$injector:modulerr] 无法实例化模块 app.someModule,原因
是:[$injector:nomod] 模块“app.someModule”不可用!您要么拼错了模块名称,要么忘记加载它。如果注册模块,请确保将依赖项指定为第二个参数。
http://errors.angularjs.org/1.4.7/ $injector/nomod?p0=app.someModule
minErr/<@ http://localhost:3000/bower_components/angular/angular.js:68:12
module/< @ 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”的简单文本搜索会返回太多点击。

4

0 回答 0