Karma unit testing: Module name “react” has not been loaded yet for context: _. Use require([])
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to set up the unit testing framework for react. While doing so, the following error has occurred. I have searched all over the internet with no solution that is working. below are the errors shown and code/packages that I am using. debug error 04 03 2016 04 : 48 : 46.340 : DEBUG [ phantomjs . launcher ]: Error : Module name "react" has not been loaded yet for context : _ . Use require ([]) http : //requirejs.org/docs/errors.html#notloaded 04 03 2016 04 : 48 : 46.341 : DEBUG [ phantomjs . launcher ]: http : //localhost