Skip to content

Support BrowserPlatforms with no window or document #1140

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

Merged
merged 1 commit into from
Aug 19, 2018

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Aug 18, 2018

This expand the checks of #1139 to support platforms where merely accessing "document" or "window" is an error condition (as is the case in Node for example).

Fixes #1138 which uses ReactNative.

Copy link
Contributor

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@schmidt-sebastian schmidt-sebastian merged commit 74c57cf into master Aug 19, 2018
@jeffreyleeon
Copy link

@wilhuff @schmidt-sebastian Would like to know is this change deployed? Thank you!

@wilhuff wilhuff deleted the mrschmidt-documentfix branch August 22, 2018 04:58
@wilhuff
Copy link
Contributor

wilhuff commented Aug 22, 2018

@jeffreyleeon This change will out with the next release, which should be soon. I can't promise an exact date, but we try to release weekly.

@fredrivett
Copy link

fredrivett commented Aug 22, 2018

+1 on needing this deployed, seems a blocker to using Firebase with any app created with create-react-native-app.

Understand it's in queue and will be soon, just registering a +1 that I'm blocked on this 👍

EDIT: As @Bunkerbewohner mentions in this issue (#1138), this bug only came about in Firebase 5.4.0. Installing [email protected] fixes this issue and unblocks me (and hopefully anyone else reading this).

@firebase firebase locked and limited conversation to collaborators Oct 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't find variable: document
5 participants