Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
Current behaviour
Expected behaviour
Code sample
Screenshots (if applicable)
What have you tried
Your Environment
| software | version |
|---|---|
| ios or android | |
| react-native | |
| react-native-paper | |
| node | |
| npm or yarn |
Please provide more informations.
when i upgrade sdk 31 then facing problem
You can ignore the warnings. They won't affect the functionality.
getting the same warning .. multiple times when app starts ... any clue ..How to remove this warning using Native-base custom theme + RNv0.57 +RNNv2
@RajenderDandyal It's not a bug. You can ignore it: https://github.com/facebook/metro/issues/287
Metro team has to fix it. We cannot do anything about it in Paper.
3 times warning each startup of my app. Even if it's not a functional problem, would be great to find a way to fix this warning

@ethanke This will hide warnings console.ignoredYellowBox = ['Require cycle: node_modules/react-native-paper'];. We do not prioritize fixing this, because it's not really an issue.
Still getting this issue.
Ignoring warnings is not the right thing to do |:

Still having the issue with RN 0.62.2
We are not planning to fix this anytime soon. You should silence this particular warning with: console.ignoredYellowBox = ['Require cycle: node_modules/react-native-paper'];
HI @Trancever, funny you just replied to this, was looking for a solution myself too to hide the warnings!
Do you mind letting me know where exactly to add console.ignoredYellowBox = ['Require cycle: node_modules/react-native-paper']; ?
I've also tried adding YellowBox.ignoreWarnings(...) to the top of my root index.js file, but it's not working.
Thanks, much appreciated!
HI @Trancever, funny you just replied to this, was looking for a solution myself too to hide the warnings!
Do you mind letting me know where exactly to add
console.ignoredYellowBox = ['Require cycle: node_modules/react-native-paper'];?I've also tried adding YellowBox.ignoreWarnings(...) to the top of my root index.js file, but it's not working.
Thanks, much appreciated!
@catalincic Same here! Mention me whenever you get an answer please :eyes:
@ethanke This will hide warnings
console.ignoredYellowBox = ['Require cycle: node_modules/react-native-paper'];. We do not prioritize fixing this, because it's not really an issue.
what do you mean it's not an issue? Quite a few people on the internet are spending their time on this. Fix the import, is it such a big deal to not fix it for 2 years??
This is not an issue to be ignored. It renders the app in the simulator totally unresponsive! One can't even remove the in app warnings with "dismiss all".
This is not an issue to be ignored. It renders the app in the simulator totally unresponsive! One can't even remove the in app warnings with "dismiss all".
Put
console.ignoredYellowBox = ['Require cycle: node_modules/react-native-paper'];
in the entry file eg. index.js It removes these warnings from popping up in the yellow blox
LOL. No way! That is an ugly hack. The source cause needs to be fixed.
-----Original Message----- From: "Pathetic Geek" [email protected] Sent: 11/06/2020 16:25 To: "callstack/react-native-paper" [email protected] Cc: "Philipp Kursawe" [email protected]; "Comment" [email protected] Subject: Re: [callstack/react-native-paper] Require cycles are allowed, butcan result in uninitialized values. Consider refactoring to remove the needfor a cycle. (#639)
This is not an issue to be ignored. It renders the app in the simulator totally unresponsive! One can't even remove the in app warnings with "dismiss all". Put console.ignoredYellowBox = ['Require cycle: node_modules/react-native-paper']; in the entry file eg. index.js It removes these warnings from popping up in the yellow blox — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
@pke I fixed the issue in this PR https://github.com/callstack/react-native-paper/pull/1851 but it is not yet merged because the PR breaks the docs if you can help me we can get that PR merged.
I'll take a look.
-----Original Message----- From: "Rajendran Nadar" [email protected] Sent: 11/06/2020 17:03 To: "callstack/react-native-paper" [email protected] Cc: "Philipp Kursawe" [email protected]; "Mention" [email protected] Subject: Re: [callstack/react-native-paper] Require cycles are allowed, butcan result in uninitialized values. Consider refactoring to remove the needfor a cycle. (#639)
@pke I fixed the issue in this PR #1851 but it is not yet merged because the PR breaks the docs if you can help me we can get that PR merged. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Que hubo @Entx 👋 Quizás estás buscando agregar multiDexEnabled true en tu build.gradle como descrito en este artículo. Justo ayer me encontré con el mismo problema.