当年前端的错误终于被修复了啊!

1.  之前一个项目,前端更新svn到某个版本后,就一直报下面的错误——首页怎么都不显示:

Error: [$injector:modulerr] Failed to instantiate module webappApp due to:

[$injector:modulerr] Failed to instantiate module ui.bootstrap due to:

[$injector:nomod] Module 'ui.bootstrap' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

http://errors.angularjs.org/1.5.8/$injector/nomod?p0=ui.bootstrap

minErr/<@http://localhost:8080/monitor/client/bower_components/angular/angular.js:68:12

2. 曾经尝试过说服前端找找原因修复一下,始终未果。

3. 多年以后,tomcat上直接运行war,一如初始看到上述错误。于是上 https://stackoverflow.com/questions/26615918/error-injectornomod-module-ui-bootstrap-is-not-available-you-either-miss

看到可能的语句的提示 :

You have to include following after angular.min....

..//ui-bootstrap-custom-tpls-0.12.0.min.js

于是,找到 E:\SysManage\FaddySoft\apache-tomcat-7.0.42\webapps\monitor\index.html

然后在 angular js的引用后面添加 ui-bootstrap-tpls-2.2.0.js 的引用。

4. 再次刷新首页,登录界面居然出现了!!我的天那, 多年悬而未决的问题竟然得到答复了!!

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容