Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some errors on npm test #6

Closed
Sensiblemnd opened this issue Jan 15, 2016 · 3 comments
Closed

Some errors on npm test #6

Sensiblemnd opened this issue Jan 15, 2016 · 3 comments

Comments

@Sensiblemnd
Copy link

node version 0.12.1

npm test

[email protected] test /Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master
karma start

15 01 2016 09:13:13.223:INFO [karma]: Karma v0.13.10 server started at http://localhost:9876/
15 01 2016 09:13:13.228:INFO [launcher]: Starting browser PhantomJS
15 01 2016 09:13:14.475:INFO [PhantomJS 1.9.8 (Mac OS X 0.0.0)]: Connected on socket /#yi9ygzVp7DeIA3VTAAAA with id 94632065
PhantomJS 1.9.8 (Mac OS X 0.0.0) ERROR: 'Warning: require('react/addons') is deprecated. Access using require('react-addons-{addon}') instead.'

Start:
Given an instance of the Component
when we render the component
✔ should render a paragraph

Finished in 0.014 secs / 0.001 secs

SUMMARY:
✔ 1 test completed
Missing error handler on socket.
TypeError: undefined is not a function
at disconnectBrowsers (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/karma/lib/server.js:311:13)
at null. (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/karma/lib/server.js:291:7)
at emit (events.js:129:20)
at emitRunCompleteIfAllBrowsersDone (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/karma/lib/server.js:256:12)
at null. (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/karma/lib/server.js:278:9)
at emit (events.js:129:20)
at onComplete (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/karma/lib/browser.js:142:13)
at Socket. (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/karma/lib/events.js:13:22)
at Socket.emit (events.js:129:20)
at Socket.onevent (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/socket.io/lib/socket.js:335:8)
at Socket.onpacket (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/socket.io/lib/socket.js:295:12)
at Client.ondecoded (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/socket.io/lib/client.js:193:14)
at Decoder.Emitter.emit (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/component-emitter/index.js:134:20)
at Decoder.add (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/socket.io-parser/index.js:247:12)
at Client.ondata (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/socket.io/lib/client.js:175:18)
at Socket.emit (events.js:107:17)
15 01 2016 09:13:24.575:WARN [PhantomJS 1.9.8 (Mac OS X 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.

Finished in 10.028 secs / 0.001 secs

15 01 2016 09:13:24.577:ERROR [karma]: [TypeError: undefined is not a function]
TypeError: undefined is not a function
at disconnectBrowsers (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/karma/lib/server.js:311:13)
at null. (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/karma/lib/server.js:291:7)
at emit (events.js:129:20)
at emitRunCompleteIfAllBrowsersDone (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/karma/lib/server.js:256:12)
at null. (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/karma/lib/server.js:278:9)
at emit (events.js:129:20)
at null._onTimeout (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/karma/lib/browser.js:50:15)
at Timer.listOnTimeout (timers.js:110:15)
/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/karma/lib/server.js:311
sockets.forEach(function (socket) {
^
TypeError: undefined is not a function
at disconnectBrowsers (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/karma/lib/server.js:311:13)
at process. (/Users/34903/Desktop/Projects/reactTests/react-webpack-starter-master/node_modules/karma/lib/server.js:352:5)
at process.emit (events.js:107:17)
at process._fatalException (node.js:236:26)
npm ERR! Test failed. See above for more details.

@krasimir
Copy link
Owner

Thanks for the report @Sensiblemnd
I'll try to reproduce the problem locally.

krasimir pushed a commit that referenced this issue Jan 20, 2016
@krasimir
Copy link
Owner

@Sensiblemnd the problem should be fixed now. I released a new 0.1.3 version. The issue is mentioned here karma-runner/karma#1751 and it is fixed in 0.13.19 version of karma. So I simply updated to this version. Let me know if it works on your machine.

@krasimir
Copy link
Owner

@Sensiblemnd I believe that the issue is fixed. I'm closing this. Let me know if it's not working as expected on your machine and I'll reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants