【问题标题】:Message "Failed to instantiate module growlNotifications..." appear on production env消息“无法实例化模块growlNotifications ...”出现在生产环境中
【发布时间】:2014-08-18 00:58:08
【问题描述】:

我目前使用mean.io作为我的应用程序的开发框架,并且已经使用了一段时间的growlNotifications插件,它在服务器端和客户端都可以完美运行。

在一些编码提交后(不影响插件),生产服务器上出现以下错误:

Uncaught Error: [$injector:modulerr] Failed to instantiate module acleague due to:
Error: [$injector:modulerr] Failed to instantiate module growlNotifications due to:
Error: [$injector:nomod] Module 'growlNotifications' is not available! You either...<omitted>...3) 

但在本地运行不会有任何问题。我确保凉亭安装在生产服务器上完美运行,并且我在 grunt 文件中执行了第 n 个操作。

谁能帮助我,甚至给我一些提示来解决这个问题?非常感谢!

【问题讨论】:

    标签: node.js angularjs gruntjs bower mean-stack


    【解决方案1】:

    由于我将 bower 组件设置为最新,因此生产服务器将运行 bower update 命令以获取最新的,而本地不会。

    所以我升级了插件并在两边都运行它,它现在可以工作了。

    【讨论】:

      猜你喜欢
      • 2014-07-14
      • 1970-01-01
      • 1970-01-01
      • 2013-03-20
      • 1970-01-01
      • 1970-01-01
      • 2016-12-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多