-
-
Notifications
You must be signed in to change notification settings - Fork 931
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
Load isomorphic-ws via import rather than async import #1048
Conversation
🦋 Changeset detectedLatest commit: 5edec5c The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@brianathere is attempting to deploy a commit to the wagmi Team on Vercel. A member of the Team first needs to authorize it. |
Thanks for the PR! Unfortunately, the sync import of Maybe we can fix this upstream in Node. |
@jxom I'm sure that can be fixed here as well. Do you have ay repro steps or environment information for where this is failing? It really shouldn't be an issue, as the isomorphic code is very simple. |
Looking at issues, am I right in guessing it was the vercel edge environment where this issue was encountered? |
And is it possible they fixed the issue here: vercel/edge-runtime#309 |
Yep, it was Vercel's Edge Runtime. If we can confirm it has been fixed, then am happy to merge this PR! |
I'm happy to confirm that, is there a sample app, or test case, I can use? Maybe even just notes on how to reproduce. |
I created a sample project here https://github.com/brianathere/viem and published it via vercel. It works fine with my change. |
@jxom can you trigger a deploy to vercel to see if anything else causes an issue? I've confirmed with my sample vercel app that viem can be used in the edge runtime, using webscokets, with my change. |
Signed-off-by: Brian Meek <[email protected]>
Signed-off-by: Brian Meek <[email protected]>
c9b0d40
to
bb16d56
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1048 +/- ##
==========================================
- Coverage 97.40% 87.95% -9.46%
==========================================
Files 397 386 -11
Lines 30780 30356 -424
Branches 1908 1436 -472
==========================================
- Hits 29982 26699 -3283
- Misses 792 3625 +2833
- Partials 6 32 +26
☔ View full report in Codecov by Sentry. |
Actually, this was probably because we should be using the default export. Retesting now. |
c8cc252
to
e37e6ec
Compare
PR-Codex overview
Focus of this PR:
This PR focuses on converting the import of
isomorphic-ws
to a synchronous import.Detailed summary:
isomorphic-ws
to a synchronous import inviem
patch.WebSocket
andMessageEvent
inrpc.ts
.