Skip to content
This repository was archived by the owner on Oct 25, 2019. It is now read-only.
This repository was archived by the owner on Oct 25, 2019. It is now read-only.

Sample doesn't work with Express 4.0 #1

@coolbnjmn

Description

@coolbnjmn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions