-
Notifications
You must be signed in to change notification settings - Fork 928
FR: Use fetch() in v9 instead of XMLHttpRequest #4912
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
Comments
It seems you are pulling the browser bundle from firestore. You probably should use the nodejs bundle pointed by the main field in deno. The nodejs build uses We only provide a cjs build for nodejs, so I'm not sure if you can use it from skypack. |
I don't think nodejs build would work with Deno. The reason for using a browser bundle is that Deno supports most of the browser APIs. And the first error I faced during my attempt to use firebase SDK in Deno is the above error. |
Interesting! The error came from @schmidt-sebastian Can you think of any workarounds? Does the long polling mode also depend on |
As far as I am aware, the GRPC team is working on adding an option to only use |
Our networking library includes experimental support. I will try to see what happens when we turn it on :) |
I'm trying to use firebase v9 beta SDK with Deno. But the new v9 version uses legacy XMLHttpRequest which isn't supported on Deno. I'm curious if it is possible to migrate to fetch() for the new v9 version.
I used the following code.
The error I get when I run the above code:
The text was updated successfully, but these errors were encountered: