Karma requirejs lodash

165 Views Asked by At

I am using karma, jasmine, requirejs and lodash. When I started project I got error like this:

PhantomJS 1.9.8 (Windows 8 0.0.0) ERROR                                                    
  Error: Module name "../lodash.js" has not been loaded yet for context: _. Use require([])
  http://requirejs.org/docs/errors.html#notloaded                                          
  at <project_path>/node_modules/requirejs/require.js:143      

I was not able to google out solution. Only what I found is this closed github issue which didnt helped me.

1

There are 1 best solutions below

0
svobol13 On

After several try-fail-modifies I found that once I downgraded lodash ~4 to lodash ~3 the error disapeared. This is sufficient solution for me.