-
Notifications
You must be signed in to change notification settings - Fork 699
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
Unable to import socket.io-client with React #313
Comments
Related: niklasvh/base64-arraybuffer#32 |
Is there any fix to it? |
@coco-nebula please see socketio/socket.io-client#1520 (comment) |
darrachequesne
added a commit
to socketio/engine.io-parser
that referenced
this issue
Jan 17, 2022
The "base64-arraybuffer" package has been temporarily forked to [1], until changes are merged upstream. [1]: https://github.com/socketio/base64-arraybuffer Related: - niklasvh/base64-arraybuffer#32 - socketio/socket.io-client#1520 - socketio/socket.io-website#313 - socketio/socket.io#4209
This should be fixed by socketio/base64-arraybuffer@d30e7cc, included in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
npx create-react-app my-app --template=typescript
.cd my-app
import io from 'socket.io-client';
anywhere in a .tsx fileio("/socket.io");
using that same .tsx filenpm start
Result:
Example repository:
https://github.com/TheAschr/socketio-compat
The text was updated successfully, but these errors were encountered: