socket.io: TypeError: this.pingIntervalTimer.refresh is not a function

Describe the bug There seems to be some dependency-issues:

/app/node_modules/browser-sync/node_modules/engine.io/build/socket.js:109 this.pingIntervalTimer.refresh(); ^ TypeError: this.pingIntervalTimer.refresh is not a function at Socket.onPacket (/app/node_modules/browser-sync/node_modules/engine.io/build/socket.js:109:40)

[…]

To Reproduce Socket.IO server version: 2.0.3 Socket.IO client version: 1.4.8 Node version: 8.9.3 NPM version: 5.5.1

Platform: OS: Ubuntu

Additional context Running in a docker container. Added to a project based on open source project openstf/stf, so the dependencies looks alike.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

I had the same issue and installing Node.js >= 10.2.0 worked for me. Thanks!

@beckbailey could you make sure you have Node.js >= 10.2.0 installed?

@peedikuubik I’m not sure copying the node_modules folder is a great idea 👼

I’m closing this, as I don’t think there is much more we can do…