Jhipster 多个角度指令模块在Pprod配置文件上不工作

Jhipster 多个角度指令模块在Pprod配置文件上不工作,jhipster,Jhipster,我在jhipster上工作,我在jhipster应用程序中有两种类型的指令模块。第一种用于索引页,第二种用于commmon指令 当我们在Prod profile上运行时,会出现一个异常:- Error: [$injector:nomod] Module 'common-directives' is not available! You either misspelled the module name or forgot to load it. If registering a module e

我在jhipster上工作,我在jhipster应用程序中有两种类型的指令模块。第一种用于索引页,第二种用于commmon指令

当我们在Prod profile上运行时,会出现一个异常:-

Error: [$injector:nomod] Module 'common-directives' 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.
 http://errors.angularjs.org/1.2.11-build.2192+sha.e2173f9/$injector/nomod?p0=common-directives
 at D:/github_repo/gather-our-code/src/main/webapp/bower_components/angular/angular.js:1531
但我在dev配置文件上运行这个,然后它对我来说运行良好

我在我们的应用程序中定义为:

/* App Module */

angular.module('index-controllers', ['ngResource','index-services']);

angular.module('index-services', []);

angular.module('index-directives', ['index-services']);

angular.module('common-directives', []);

angular.module('indexApp', ['ngResource',
                             'ngRoute',
                             'index-services',
                             'index-controllers',
                             'index-directives',
                             'common-directives',
                             'http-auth-interceptor'
                             ]);

我认为这是的副本,您是否在index.html中导入了JavaScript文件?是的,我已在index.html中导入了所有JavaScript文件