Error in karma testing:oc.lazyLoad
Asked Answered
B

1

1

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

Bitolj answered 11/8, 2015 at 10:59 Comment(0)
B
0

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

Bitolj answered 23/8, 2015 at 4:6 Comment(2)
can you please explain how to do this?Rodeo
You can do this with bower .. bower install oclazyload .. you can find more information in this link : install oclazyloadBitolj

© 2022 - 2024 — McMap. All rights reserved.