缺少`socket`上的错误处理程序。 TypeError :( msg ||"")。replace不是函数

时间:2016-08-02 10:17:26

标签: angular karma-jasmine angular-cli

我在angular2.in运行单元测试时遇到以下错误。我正在使用angular cli作为构建工具。单元测试的业力。任何人都可以建议修复它

socket上缺少错误处理程序。 TypeError :( msg ||"")。replace不是函数     在D:\ AngularjsApp1 \ src \ client \ node_modules \ karma \ lib \ reporter.js:45:23     在onBrowserError(D:\ AngularjsApp1 \ src \ client \ node_modules \ karma \ lib \ reporter \ base.js:58:60)     在null。 (d:\ AngularjsApp1 \ SRC \客户\ node_modules \因缘\ lib中\ events.js:13:22)     在emitTwo(events.js:87:13)     在emit(events.js:172:7)     at onKarmaError(D:\ AngularjsApp1 \ src \ client \ node_modules \ karma \ lib \ browser.js:95:13)     在Socket。 (d:\ AngularjsApp1 \ SRC \客户\ node_modules \因缘\ lib中\ events.js:13:22)     在emitOne(events.js:82:20)     在Socket.emit(events.js:169:7)     在Socket.onevent(D:\ AngularjsApp1 \ src \ client \ node_modules \ socket.io \ lib \ socket.js:335:8)     在Socket.onpacket(D:\ AngularjsApp1 \ src \ client \ node_modules \ socket.io \ lib \ socket.js:295:12)     在Client.ondecoded(D:\ AngularjsApp1 \ src \ client \ node_modules \ socket.io \ lib \ client.js:193:14)     at Decoder.Emitter.emit(D:\ AngularjsApp1 \ src \ client \ node_modules \ component-emitter \ index.js:134:20)     在Decoder.add(D:\ AngularjsApp1 \ src \ client \ node_modules \ socket.io-parser \ index.js:247:12)     在Client.ondata(D:\ AngularjsApp1 \ src \ client \ node_modules \ socket.io \ lib \ client.js:175:18)     在emitOne(events.js:77:13)     在Socket.emit(events.js:169:7)

0 个答案:

没有答案