Angular Meteor应用程序在localhost中工作,但在部署到服务器时失败

时间:2015-12-24 18:51:36

标签: javascript angularjs meteor angular-meteor

使用angular-with-blaze包的Angular Meteor应用程序在localhost上运行良好,但使用mupmupx部署到服务器时,网站会部分加载并引发以下错误在浏览器JS控制台中:

Error: [$injector:modulerr] Failed to instantiate module myApp due to:
Error: [$injector:unpr] Unknown provider: e

认为这是由于JS文件的缩小,我尝试了mupx的以下设置,但它没有帮助。

"buildOptions": {
  // build with the debug mode on
  "debug": true
}

有关解决此问题的任何建议吗?

1 个答案:

答案 0 :(得分:0)

尝试使用gulp任务&gulp-ng-annotate'如果你分别使用gulp或grunt-ng-annotate。它将根据角度Dependency Annotation为模块中的依赖项添加所需的注释。