socket.io-client icon indicating copy to clipboard operation
socket.io-client copied to clipboard

Uncaught Error: Cannot find module 'buffer'

Open askucher opened this issue 12 years ago • 10 comments

Uncaught Error: Cannot find module 'buffer'

askucher avatar Jul 08 '14 18:07 askucher

That's pretty broad. Maybe you can give us a stack trace? Did you do "npm install"?

SEAPUNK avatar Jul 10 '14 01:07 SEAPUNK

This happens if you use "socket.io.js" and "engine.io.js" from Github, rather than from the CDN.

ocharles avatar Jul 23 '14 15:07 ocharles

Likely you failed to run npm install. Still would need way more info about what you have tried already and what specific was failing/when/what versions etc.

defunctzombie avatar Jul 24 '14 18:07 defunctzombie

We're using the engine.io.js and socket.io.js built files from Github, as I mentioned. As far as I'm aware, these are compiled for us so we can include them with <script> tags. I have tried using them in a script tag, and the original posters error message appears in my console, preventing me from using the library. If there's more information I'm happy to provide it, but you need to tell me what you want to know.

ocharles avatar Jul 24 '14 18:07 ocharles

Ditto. Latest client file off github fails. I scraped the one served by the server at /socket.io/socket.io.js and that seems to work.

martypdx avatar Jul 30 '14 20:07 martypdx

Same here - the client provided does not work.

rwilsonjr avatar Aug 13 '14 23:08 rwilsonjr

I was having the exact same problem here, using the version from the 1.0.5 commit it works. In my case the 1.0.5 still fits well.

LucasLazaro avatar Aug 18 '14 13:08 LucasLazaro

Can this be fixed in the repository or at least remove the link to the broken client from the download page?

notr1ch avatar Aug 18 '14 16:08 notr1ch

+1

manast avatar Aug 26 '14 20:08 manast

+1

alvarotrigo avatar Sep 02 '14 16:09 alvarotrigo