业力测试中的错误:oc.lazyLoad [英] Error in karma testing:oc.lazyLoad
本文介绍了业力测试中的错误:oc.lazyLoad的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在测试时遇到了因果报应的错误
I am getting this error in Karma while testing
错误:[$ injector:modulerr]由于以下原因,无法实例化模块***: 错误:[$ injector:modulerr]由于以下原因,无法实例化模块oc.lazyLoad. 引导过程中找不到模块,无法启动ocLazyLoad
Error: [$injector:modulerr] Failed to instantiate module *** due to: Error: [$injector:modulerr] Failed to instantiate module oc.lazyLoad due to: No module found during bootstrap, unable to init ocLazyLoad
这是我的角度初始化:
angular.module('*** ', [
'ui.router',
'ui.bootstrap',
'oc.lazyLoad',
'ngResource',
'pascalprecht.translate',
])
能帮我解决这个问题吗
推荐答案
我通过再次安装ocLazyLoad并将其路径添加到karma.comfig.js文件中来解决了此问题
I've resolved this problem by installing ocLazyLoad another time and add its path to karma.comfig.js files
这篇关于业力测试中的错误:oc.lazyLoad的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文