-
Notifications
You must be signed in to change notification settings - Fork 724
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
use Standalone Client Tips: Error: ws does not work in the browser. Browser clients must use the native WebSocket object #1062
Comments
Same error occured in production using vite react-ts |
error is |
I cant fix it. Who know, how to do it? |
Is this still an issue? |
@finessevanes yes for vite projects (maybe not vite 4 tho). @marherb 's solution does work, but is a little heavy handed (i.e. the string "global" is replaced with "globalThis" so things like "global-warming" become "globalThis-warming". |
A slightly more surgical approach is to use |
@MacroChip what API are you using? |
@finessevanes Did some diving because I am not using it directly. TLDR I think walletconnect v2 fixed this. |
I’m closing this issue because it has been inactive for a few months. Please reopen if you still encounter this issue with the latest version :) |
Error: ws does not work in the browser. Browser clients must use the native WebSocket object
The text was updated successfully, but these errors were encountered: