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
When the NPM package is bundled, fetch is shimmed using node-fetch. This shim does not work in the browser, which means that users of the NPM versions of earthstar packages cannot sync via HTTP.
Is there a solution you'd like to recommend?
I need to find some solution for either:
Shimming with an 'isomorphic' version of fetch which works in both Node and the Browser. I'd probably need to make this myself as there are no packages right now which satisfy dnt's ESM and typings requirements.
Possibly splitting build process up so that there is both a Node and Browser version of earthstar-streaming-rpc, further complicating things.
The text was updated successfully, but these errors were encountered:
What's the problem you want solved?
When the NPM package is bundled,
fetch
is shimmed using node-fetch. This shim does not work in the browser, which means that users of the NPM versions of earthstar packages cannot sync via HTTP.Is there a solution you'd like to recommend?
I need to find some solution for either:
The text was updated successfully, but these errors were encountered: