-
Notifications
You must be signed in to change notification settings - Fork 4
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
Uncaught ReferenceError: io is not defined #9
Comments
Hi, good question - what's the error you receive when you add |
socket.io is already listed in package.json:
and I have it installed. The error with
However if I change that line to:
It works beautifully.
the |
Thanks for that. Is everything working perfectly now? :) |
For it to work I have changed port 3001 to 8080. app.js
assets/scripts/app.js
layout.pug
|
I have modified my hackathon-starter site according to the Readme file.
After running
npm start
and accessing the site from a client I get the following error:The error is generated by the following client code:
While in the hackaton-starter code there is the following line in
layout.pug
:I don't see the same in this repo, and if try to add it it gives another error since there is no socket.io library compiled by
laravel-mix
.How is
socket.io
supposed to be loaded in the client side? am I missing something obvious?Thank you in advance
The text was updated successfully, but these errors were encountered: