-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Require Cycle: DocumentReference <> DocumentSnapshot #1446
Comments
Actually it turns out there's a bunch more of them which I could list here as well if interested |
@TrekSoft Yes please, could you list them and I'll restructure the code. Thanks Loving
|
Thanks so much @Salakar ! Here's what I have:
Thanks again! |
We are running in to the similar error as well:
That's our setup here:
Firebase:
|
These can be ignored for now as it doesn't break anything, the code will be refactored in an upcoming major release to address these warnings. You can hide them for now if you wish to: import { YellowBox } from 'react-native';
YellowBox.ignoreWarnings(['Require cycle:']); |
Has this been fixed yet? i am also getting the same yellow warnings. |
I have set yellow box to ignore these warnings for now until it is updated. I assume it should be ok if nothing is breaking. |
Same problem here. RN 0.57.2 |
Can confirm, also getting those |
I'm using core, messaging, and notifications for Android
console output (the below occurs 10 times):
|
same problem here
|
See: facebook/metro#287 |
I cannot get rid of them in my console. Would be great if this could be fixed, as it really isn't a very good coding practice |
Same problem here:
|
All you need to do to get rid of the warning from console is to patch it in metro Luckily I found Exilz, does this job well. |
Require cycles on their own are not bad, while the warning is justified I think trying to get rid of require cycles completely is a bad idea for most projects, this included, adding it to the ignored list would be my way to go. |
I'm also getting this on RN0.59... Would be great if this could be fixed.. :-) |
Same here, having the same error in RN0.59 |
Pretty annoying 😄 Anything we can do to help? |
This has been completely solved in v6 and a drastic internals rework was the only way to solve something like this, unfortunately. v6 is still WIP but if you're one of the lucky few to only need the Firebase modules listed on the v6 changelog then you can switch to v6 already (instructions on changelog). The modules listed there are ready for use despite their 'alpha' tag on npm as these are more like a 'RC' version - alpha tagged as some modules (the ones not listed there) still need to be migrated to v6 still before it can be released - and all the modules require the same version. |
I can't wait to use that. I've been waiting for the stack traces... So sexy. Unfortunately cloud messaging isn't in that list yet. Thanks for being awesome. 😎 |
Thanks so much Salakar! I'm now teaching a college night class on the side with my job at Amazon and have all of them using Firebase with your library since it is by far the easiest and best database integration I know of with mobile. |
Hi, is this issue now resolved or should we wait for v6? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hello 👋, to help manage issues we automatically close stale issues.
|
FYI this will be fixed in v6 which is currently in progress. |
@Salakar
|
Thanks @SaeedZhiany - these have all been sorted in the upcoming v6 release |
Pushed up the v6 Firestore changes for this earlier today. |
Hello 👋, to help manage issues we automatically close stale issues.
|
having the same error in RN0.61.2 |
v6 has been released for a few months now with this fix. |
Issue
The newest version of react native (0.57.0-rc.3) has started giving yellow bar warnings about require cycles.
I'm using v5.6.0 of react-native-firebase and am getting a warning about this require cycle:
Require cycle: node_modules\react-native-firebase\dist\modules\firestore\DocumentReference.js -> node_modules\react-native-firebase\dist\modules\firestore\DocumentSnapshot.js -> node_modules\react-native-firebase\dist\modules\firestore\DocumentReference.js
Environment
Android
Windows 10
N/A
React Native
version:0.57.0-rc.3
React Native Firebase
Version:5.6.0
Firebase
Module:Firestore
typescript
?No
The text was updated successfully, but these errors were encountered: