node-phantom icon indicating copy to clipboard operation
node-phantom copied to clipboard

createPage hangs when using socket.io >= 1.0.0

Open abastos-tui opened this issue 11 years ago • 5 comments

After recent release of version 1.0 of socket.io, node-phantom package hangs when calling the .createPage method.

This happened because of the dependency at package.json: "socket.io": ">= 0.9.17".

The new socket.io version is not compatible backwards. When using node-phantom within a fresh installation, version 1.0.x is retrieved due to the previous dependency, but node-phantom internal code fails to use the changes made from 0.9.x.

I solved that adding a "socket.io": "0.9.x" dependency in my main package, avoiding the node-phantom dependency to be fetched. My suggestion is to change the node-phantom dependency to "socket.io": "0.9.17" until code changes are applied to suport the new socket.io version.

abastos-tui avatar May 30 '14 14:05 abastos-tui

@abastos-tui I ran into this too. Thank you for this info and suggestion(s). Your suggestion for a temp fix works great in my case as well.

localnerve avatar Jun 06 '14 19:06 localnerve

+1

ashishtilara avatar Jun 11 '14 05:06 ashishtilara

@abastos-tui, thanks so much for this workaround. Worked wonderfully.

RickEyre avatar Jun 17 '14 03:06 RickEyre

Thank you for the workaround!

jvrousseau avatar Jun 27 '14 20:06 jvrousseau

This issue is responsible for #58. The workaround worked.

electerious avatar Jul 06 '14 13:07 electerious