react-native-paper icon indicating copy to clipboard operation
react-native-paper copied to clipboard

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.

Open isthaison opened this issue 8 years ago • 43 comments

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

isthaison avatar Nov 05 '18 03:11 isthaison

Please provide more informations.

Trancever avatar Nov 05 '18 06:11 Trancever

when i upgrade sdk 31 then facing problem

isthaison avatar Nov 05 '18 09:11 isthaison

You can ignore the warnings. They won't affect the functionality.

satya164 avatar Nov 05 '18 14:11 satya164

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 avatar Nov 28 '18 14:11 RajenderDandyal

@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.

satya164 avatar Nov 28 '18 14:11 satya164

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

Capture d’écran 2019-08-15 à 11 05 59

ethanke avatar Aug 15 '19 09:08 ethanke

@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.

Trancever avatar Aug 19 '19 08:08 Trancever

Still getting this issue.

firofame avatar Mar 06 '20 03:03 firofame

Ignoring warnings is not the right thing to do |:

sajaddp avatar Mar 30 '20 20:03 sajaddp

Screenshot 2020-04-17 at 14 59 36

Still having the issue with RN 0.62.2

azuxx avatar Apr 17 '20 13:04 azuxx

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'];

Trancever avatar Apr 17 '20 14:04 Trancever

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 avatar Apr 17 '20 15:04 catalincic

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:

HunteRoi avatar Apr 19 '20 14:04 HunteRoi

@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??

kulikalov avatar Apr 20 '20 06:04 kulikalov

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".

pke avatar May 13 '20 21:05 pke

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

patheticGeek avatar Jun 11 '20 14:06 patheticGeek

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 avatar Jun 11 '20 14:06 pke

@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.

raajnadar avatar Jun 11 '20 15:06 raajnadar

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.

pke avatar Jun 11 '20 16:06 pke

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.

cjduncana avatar Jun 12 '20 05:06 cjduncana