[英]Karma requirejs lodash
I am using karma
, jasmine
, requirejs
and lodash
. 我正在使用
karma
, jasmine
, requirejs
和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. 我无法用Google搜索解决方案。 Only what I found is this closed github issue which didnt helped me.
只有我发现这个封闭的github问题并没有帮助我。
After several try-fail-modifies I found that once I downgraded lodash ~4
to lodash ~3
the error disapeared. 经过几次尝试失败修改后,我发现将
lodash ~4
降级为lodash ~3
,错误lodash ~3
了。 This is sufficient solution for me. 这对我来说是足够的解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.