Io is Undefined

Hi! At https://glitch.com/edit/#!/ojvjpj?path=public%2Fclient.js%3A2%3A15 I keep getting an error io is not defined
, but in client.html I import socket.io at the bottom.

the program that produces these error messages, I’m pretty sure it doesn’t actually analyze your whole site. it only looks at one file at a time. so errors like this will show up.

but incidentally, wasn’t it the case that module-type scripts don’t share a global namespace?

1 Like

Thank you! That makes sense. I’ve got no idea what a global namespace is, but the program seems to be working, now that I think about it, so thanks again.