An Angular Meteor app using angular-with-blaze
package works well on localhost
but when deployed to a server using mup
and mupx
, the site loads partially and throw the following error in the browser JS console:
Error: [$injector:modulerr] Failed to instantiate module myApp due to:
Error: [$injector:unpr] Unknown provider: e
Thinking this is due to minification of the JS files, I tried the following setting for mupx
but it did not help.
"buildOptions": {
// build with the debug mode on
"debug": true
}
Any suggestions on troubleshooting this issue?
Try to use gulp task 'gulp-ng-annotate' if you are using gulp or grunt-ng-annotate respectively. It will add required annotations to dependencies in your modules according to angular Dependency Annotation .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.