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
TypeError: io is not a function #873
Comments
This looks really a basic error and it's more likely something wrong with your settings. Feel free to reopen. |
having same problem. What settings? |
Im having the same issue. What settings? |
having same problem. What settings? |
Same problem here using Parcel.js / Typescript as the ES6 bundler |
import * as io from 'socket.io-client'; |
What if were using plain old JavaScript? |
Use |
io.connect() can't solve the problem, issue is still there |
for me the combination of @renatosvo and @Kacppian suggestions worked: |
sameProblem when i'm exporting it gives me an error the my code is
and the error i'm getting is
|
When trying to connect using
I get the error TypeError: io is not a function. I can see the socket.io/socket.io.js file in the network tab and is getting loaded. I have installed socket.io using npm socket.io and am using socket.io-client version 1.3.6
The text was updated successfully, but these errors were encountered: