Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jquery and socket.io include order important #60

Open
iangreenleaf opened this issue Aug 17, 2011 · 1 comment
Open

jquery and socket.io include order important #60

iangreenleaf opened this issue Aug 17, 2011 · 1 comment

Comments

@iangreenleaf
Copy link

I'm not even sure if this is a zappa bug, but it certainly caught me off guard. I hit problems when I included jquery before socket.io like so:

    script src: '/zappa/jquery.js'
    script src: '/socket.io/socket.io.js'

That causes the following in the browser console:

Uncaught ReferenceError: io is not defined
    (anonymous function)                                        socket.io.js:463
 Uncaught ReferenceError: io is not defined
    zappa.run.root_locals.connect                               zappa.js:1
    (anonymous function)                                        :3
    anonymous                                                   :17
    zappa.run                                                   zappa.js:1
    (anonymous function)                                        index.js:1

Switching the order of those two scripts resolves the error. Any idea why this is happening?

@mauricemach
Copy link
Owner

I stumbled upon this issue too but didn't investigate it yet. I'll let you know if I do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants