You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default export was accidentally removed in [1].
Note: that being said, users are encouraged to use the named exports,
because the default export has a different meaning for CommonJS and ES
modules users.
```js
// BAD
import io from "socket.io-client";
// GOOD
import { io } from "socket.io-client";
```
Related:
- #1505
- #1507
- #1508
[1]: 16b6569
On socket.io-client 4.2.0. I can require it and connect server side like this
This stopped working with 4.3.0, with the following error.
Uncaught TypeError: io is not a function
I have to modify the code to
To make it work, not sure if this is intended or a side effect of the changes in 4.3.0.
The text was updated successfully, but these errors were encountered: