-
Notifications
You must be signed in to change notification settings - Fork 1.2k
socket.io-client/socket.io.js Does not get loaded in build #2524
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
Comments
which version of socket.io do you have installed? |
Default version installed is "[email protected]" from "socket.io-client": "^1.3.5" |
It's worth clarifying that |
try changing |
That does seem to work, and does appear to compile the |
@Awk34 After a bit of using this, I see a new bug introduced. While this fixes the |
I have found what I believe to be an event better solution:
This will reveal a bug in the gulpfile which adds the js file as the following( <script src="bower_components/socket-io-/socket.io.js"></script> To remedy this, on line 445 of the gulpfile.babel.js change this: ignorePath: clientPath to ignorePath: './'+clientPath Which will finally result in: <script src="bower_components/socket-io-client/socket.io.js"></script> Remove all other references in the index.html to socket.io-client Would love to have this added into the master @Awk34 Would you like a PR? |
@mattxgreen go for it |
The PR would have to be made against the v3 branch, as the master branch contains code for the 4.x.x versions |
Adds socket-io-client to bower Fixes issue with gulp wiredep removing the string 'client' from added packages with the word 'client' in it's name Closes angular-fullstack#2524
On a fresh scaffold of version 3.8, on a gulp serve:dist Chrome Console will show "ReferenceError: io is not defined(…)". I have isolated this to be socket.io-client/socket.io.js not loading (line 62 in index.html). The following seems to work for now, but does not compile the js into the vendor.js.
Change this in index.js:
TO
And remark out the following line in app.js
I would also like to note similar prior issues #766 and #2497
The text was updated successfully, but these errors were encountered: