You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 25, 2019. It is now read-only.
So I'm trying to build an Express 4.0 app that uses socket.io chat, and I've been running into a lot of issues. I run this nodejs web app through heroku, so I thought this tutorial would be perfect, but when copying the exact code with my dependencies, it of course breaks and I get an error on the client side:
Uncaught ReferenceError: require is not defined socket.io.js:12
Uncaught ReferenceError: io is not defined chat2:2
I've searched far and wide on Stack Overflow and I can't seem to find an answer to these issues. Any suggestions?
Hi,
So I'm trying to build an Express 4.0 app that uses socket.io chat, and I've been running into a lot of issues. I run this nodejs web app through heroku, so I thought this tutorial would be perfect, but when copying the exact code with my dependencies, it of course breaks and I get an error on the client side:
Uncaught ReferenceError: require is not defined socket.io.js:12
Uncaught ReferenceError: io is not defined chat2:2
I've searched far and wide on Stack Overflow and I can't seem to find an answer to these issues. Any suggestions?
There is more detail on my stack overflow question following this same issue: http://stackoverflow.com/questions/23274918/heroku-socket-io-sample-error-in-express-4-0
Thanks
The text was updated successfully, but these errors were encountered: