简体   繁体   English

在生产环境中出现消息“无法实例化模块grolNotifications…”

[英]Message “Failed to instantiate module growlNotifications…” appear on production env

I am current using mean.io as development framework of my application and have been using growlNotifications plug-in for certain time and it works perfect on both server and client side. 我当前使用的是mean.io作为我的应用程序的开发框架,并且在一段时间内一直使用growlNotifications插件,它在服务器端和客户端都可以完美运行。

while after some coding commit (does not affect the plug-in), the following error appear on the production server: 在进行一些编码提交(不影响插件)后,生产服务器上出现以下错误:

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) 

but it won't have any problem running on local. 但在本地运行不会有任何问题。 I ensure that the bower install work perfectly on production server and i did nth in the grunt file. 我确保Bower安装在生产服务器上完美运行,并且在grunt文件中未执行nth。

Could anyone help me or even give me some hints to solve this problem? 谁能帮助我,甚至给我一些解决这个问题的提示? Thanks a lot! 非常感谢!

As I was set the bower component as latest, the production server will run the bower update command to get the latest one while local does not. 当我将bower组件设置为最新组件时,生产服务器将运行bower update命令以获取最新的组件,而本地服务器不会。

So I upgraded the plugin and run it on both sides, it works now. 因此,我升级了插件并在两侧运行它,现在可以使用了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM