未处理的拒绝TypeError:this.emitter.refreshFiles不是函数

时间:2016-09-28 03:06:19

标签: javascript angularjs unit-testing karma-runner karma-jasmine

我正在测试我的角度应用程序,它使用angular(1.5)+ typescript(^ 1.8.0)+ karma(^ 0.13.14);

我在尝试运行业力时遇到以下错误:

  

"未处理的拒绝TypeError:this.emitter.refreshFiles不是   功能       在Plugin.notifyKarmaAboutChanges(/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/karma-webpack-with-fast-source-maps/index.js:148:15)       在插件。 (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/karma-webpack-with-fast-source-maps/index.js:104:9)       在Compiler.applyPlugins(/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/node_modules/tapable/lib/Tapable.js:25:14)       在Watching._done(/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/lib/Compiler.js:93:17)       在看。 (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/lib/Compiler.js:76:18)       在Compiler.emitRecords(/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/lib/Compiler.js:319:37)       在看。 (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/lib/Compiler.js:59:19)       at /Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/lib/Compiler.js:312:11       在Compiler.applyPluginsAsync(/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/node_modules/tapable/lib/Tapable.js:73:70)       在Compiler.afterEmit(/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/lib/Compiler.js:309:8)       在编译器。 (/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/lib/Compiler.js:304:14)       at /Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/node_modules/async/lib/async.js:52:16       at Object.async.forEachOf.async.eachOf(/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/node_modules/async/lib/async.js:236:30)       at Object.async.forEach.async.each(/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/node_modules/async/lib/async.js:209:22)       在Compiler.emitFiles(/Users/roamer/Documents/work/project/asbhub/develop/asbhub-frontend/node_modules/webpack/lib/Compiler.js:272:20)       在MemoryFileSystem。(匿名函数)[作为mkdirp](/ Users / roamer / Documents / work / project / asbhub / develop / asbhub-frontend / node_modules / karma-webpack-with-fast-source-maps / node_modules / webpack-dev -middleware / node_modules /存储器-FS / LIB / MemoryFileSystem.js:283:10)"

所以我只能重新启动业力再次运行我的测试,而不是让业力为我自动刷新。无法在stackoverflow上找到类似的问题,所以我在这里发布我的问题。有什么建议吗?

0 个答案:

没有答案