-
Notifications
You must be signed in to change notification settings - Fork 872
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
IE11 broken on 7.13.x #2827
Labels
Comments
This will be fixed in the next release. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
Firestore (both memory-only and standard versions) breaks on IE11 with version 7.13.0 and 7.13.1
Everything works fine on 7.12.0
The first error is:
SCRIPT5009: 'crypto' is undefined
Which is easy to fix with a pollyfill
var crypto = window.crypto || window.msCrypto;
After that, this error pops up:
SCRIPT438: Object doesn't support property or method 'forEach'
I think this is caused by this PR:
#2764
Specifically this line:
firebase-js-sdk/packages/firestore/src/util/misc.ts
Line 34 in 97aada8
This is a Uint8Array, so it needs to be pollyfilled like this:
Uint8Array.prototype.forEach = Array.prototype.forEach;
I don't think these pollyfills are included in @babel/preset-env or the core-js all in one script
The text was updated successfully, but these errors were encountered: