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

createPage does not callback

Open bengfarrell opened this issue 11 years ago • 6 comments

It used to be that my project using this node-phantom package worked. Now it doesn't. CreatePage now no longer calls back.

It would seem that the difference is that Socket.IO was updated past 1.0. If I force an npm install of socket.io 0.9.16, everything seems to work.

However, the package.json specifies >=0.9.6 and I end up with 1.0.6, which seems to have some issues with this project...mainly that I don't seem to be getting socket.on('res') messages.

bengfarrell avatar Aug 18 '14 19:08 bengfarrell

+1

onyxrev avatar Aug 19 '14 00:08 onyxrev

+1 @bengfarrell This is the problem, indeed.

nicroto avatar Aug 23 '14 20:08 nicroto

yup: https://github.com/alexscheelmeyer/node-phantom/pull/104

jmonster avatar Aug 25 '14 05:08 jmonster

Guys, I am using shrinkwrap to lock the current versions.

Before running it, you should make sure that the supported version of socket.io (0.9.16 works for me) is installed in node_modules. Then run it to generate npm-shrinkwrap.json:

$ npm shrinkwrap --dev

When a team member downloads your repo, there is nothing extra she/he should do, just

$ npm install

But during development, you should regenerate the npm-shrinkwrap.json if you add/remove/update-to-new-version-of a module.

I hope this will be helpful for you.

nicroto avatar Aug 25 '14 06:08 nicroto

@alexscheelmeyer Can we get this change into the npm package repository? It is really annoying to do it manually all the time.

txdv avatar Oct 13 '14 11:10 txdv

+1

marko-ciric avatar Nov 28 '14 09:11 marko-ciric