Currently, I am working on jhipster Release 0.7.0 and our jhipster app has multiple types of directive modules – one for the index page and another for common directives.
However, when we run the app on Prod profile, an exception occurs:
[31mPhantomJS 1.9.7 (Windows 7) ERROR[39m Error: [$injector:nomod] Module 'common-services' is not available! It seems like either there is a typo in the module name or it was not loaded properly. If you're registering a module, make sure to specify the dependencies as the second argument. http://errors.angularjs.org/1.2.11-build.2192+sha.e2173f9/$injector/nomod?p0=common-services at D:/github_repo/gather-our-code/src/main/webapp/bower_components/angular/angular.js:1531
The same code runs without issues on the develop profile.
I would appreciate any help in resolving this bug promptly.