-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Running grunt serve:dist generates a "Error: Can't find variable: io" #1409
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
You're probably not including |
It's included in app.js. It works well with
Do i have to set some env variables or anything else when i use |
One more time i took back the original Gruntfile.js and now it works so was my fault but do not know why. Any way it works thanks Awk34 ! |
👍 |
FYI in case there is any similarity to the solution posted here: #766 (comment) |
Hey, I think I'm having this issue... here are some versions that may be relevant:
When I run I came across the link @xeroxoid shared as well, but changing my index.html to reference that different location broke the site locally (the file was not in that location, so that must have been with a later version... though I think I saw that 0.7.0 is the latest, so maybe that's a different situation). It works locally as is, but just not when I build and push to Heroku. EDIT: I think I may have had a process running in the background of terminal that, once I closed terminal and opened it again, gave me different outcomes locally. With the above versions locally, I still don't get an error, but socket doesn't actually work; I can add/update/remove an item, and where it had always triggered the function given in syncUpdates <ie. socket.syncUpdates('thing', this.things, (thing, things) => { console.log('does not get here anymore');>, now that function doesn't get called, but no error is thrown either. After building and pushing to Heroku, I get "ReferenceError: io is not defined" ... any help would be greatly appreciated - thank you. |
I've installed nvm and tried going back to previous node versions and have still not gotten socket to update, so I'm not sure the version of node is related to the problem I'm experiencing... wondering now if recently updating gulp to a newer version caused |
Hello,
When i want to execute the command
grunt serve:dist
all goes well until the browser opens and wants to display the main screen :My app opens by default the login screen without error. But once logged in, i have that error and can't do anything else.
I removed the Thing model, created few more but nothing is using socket.io more than what is generated by the generator.
Is there any way to debug that and find from where it comes from ?
The text was updated successfully, but these errors were encountered: