-
Notifications
You must be signed in to change notification settings - Fork 893
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
5.0.4 release breaks React Native (Android only) #871
Comments
Hey there! I couldn't figure out what this issue is about, so I've labeled it for a human to triage. Hang tight. |
I've Android 5.1 with Windows 8.1 64 bit. Getting the same error as @kellytowle has described. 5.0.3 works fine. |
getting same error as @kellytowle, having the same issue with firebase 5.0.4, reverting back to version 5.0.2 solved the error and my react-native app works fine. |
Reverting back to version 5.0.3 (Windows 10), is OK for me. |
Huge thanks, @kellytowle. Downgrading to 5.0.3 also fixed the issue with me. Standard react-native init app. "firebase": "^5.0.3", |
Actually while using a node version at around 8.x.x I faced the same issue, but upgrading to the latest version of node it works. I am using the 10.4.1. but It seems to work even with 9.x.x versions. PD: This without downgrading the firebase version, I have kept with the 5.0.4. |
Interesting - I'll give that a shot this evening. Not on the same machine
at present but I'm pretty sure I was on 8.9.x as well.
Still, given that the problem was introduced with the 5.0.4 release of the
firebase module and that node 8 is the current LTS version, I still feel
like someone should investigate what changed in the 5.0.4 update that
caused this issue.
…On Fri, Jun 15, 2018, 10:45 AM Mario Victor Medrano Maldonado < ***@***.***> wrote:
Actually while using a node version at around 8.x.x I faced the same
issue, but upgrading to the latest version of node it works. I am using the
10.4.1. but It seems to work even with 9.x.x versions.
PD: This without downgrading the firebase version, I have kept with the
5.0.4.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#871 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEsj-B9i1KSc4xv5Dsvp1fJR3z45OM3Mks5t8_K1gaJpZM4UPH-L>
.
|
Is there any way we can downgrade our Firebase version? |
@D4G4 , The first result on Google shows: So, you can use the below one to downgrade to 5.0.3 |
confirm downgrade to 5.0.3 |
Same issue even with Firebase 5.1.0 |
This is some crazy issue... |
Hey all, it seems like this issue is another recurrence of this issue logged to the react folks: facebook/react#8379 (comment) tl;dr Load Firebase (at least In order to ensure that our SDK is consistent across environments, we load Polyfills for certain APIs in the event that they are missing (see: https://www.npmjs.com/package/@firebase/polyfill). Loading the Symbol Polyfill is something that, if not done before react loads, causes future react to not recognize its own components and to throw the types of errors you are seeing. To circumvent this you can load Firebase (which loads these polyfills) before you load other code. As of yet, Firebase does not ship a distro w/o these polyfills, but once we do, you could alternately use that and the load order will not matter any longer. |
confirm downgrade to 5.0.3 |
confirm downgrade to 5.0.3! |
Indeed if you do want to use latest firebase code - @jshcrowthe advice helped. Just throw "import firebase from 'firebase';" at the very beginning of your App's index.js (eslinter will hint you that you have unused variable though - but it will do it's job anyway) |
confirm downgrade to 5.0.3! |
I had this problem today. I ran a diff on the source code between 5.0.3 and 5.0.4 and found that the exports have changed. I also found that if I change the import statement to the following that it works with the latest version (5.3.0):
If you're using eslint you'll probably get a complaint that it should be listed in the project dependencies, but you can ignore that. You'll probably also want to use the actual features of firebase rather than just the core import. For example, to use the authentication module you'd add the following:
|
I had a same problem with "firebase". |
The issue still persists in 5.5.1 |
with 5.5.1 the solution of @groksrc works also as a charm Thanks! |
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
When pulling latest
firebase
module via NPM into a project works fine for iOS but breaks on Android (tested on an 8.1.0 device & 6.0 simulator, with same results).Presented with the error: "
Objects are not valid as a React child (found: object with keys {$$typeof, type, key, ref, props, _owner, _store})...
"Error is avoidable either by commenting out the
import
line in JS code or by explicitly requesting[email protected]
Steps to reproduce:
react-native init firebaseTest
./firebaseTest
npm i --save firebase
react-native run-ios
and see that it loads without issuereact-native run-android
(after opening./android
in Android Studio to auto-configure build) and see that it presents the error listed up topnpm i --save [email protected]
and re-runreact-native run-android
to see that the error has gone away.Relevant Code (App.js file in a fresh React Native project):
The text was updated successfully, but these errors were encountered: