Error in karma testing:oc.lazyLoad

不想你离开。 提交于 2020-01-03 03:48:10

问题


I am getting this error in Karma while testing

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

This is my angular init:

angular.module('*** ', [
      'ui.router',
      'ui.bootstrap',
      'oc.lazyLoad',
      'ngResource',
      'pascalprecht.translate',
  ])

Can you help me to resolve this please


回答1:


I've resolved this problem by installing ocLazyLoad another time and add its path to karma.comfig.js files



来源:https://stackoverflow.com/questions/31939956/error-in-karma-testingoc-lazyload

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!