question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Require cycle warnings.

See original GitHub issue

With new metro and RN 0.57, new warnings appear with Require cycle warnings.

Warning:

Require cycle: node_modules/react-native-gesture-handler/GestureHandler.js -> node_modules/react-native-gesture-handler/Swipeable.js -> node_modules/react-native-gesture-handler/GestureHandler.js

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

Where this happens:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:12
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
ujwal-setlurcommented, Dec 17, 2018

Changing the import code in DrawerLayout.js back to:

import {
  PanGestureHandler,
  TapGestureHandler,
  State,
} from './GestureHandler';

resolves the problem

4reactions
waweru-kamaucommented, Nov 19, 2018

Facing the same issue here too. I have not found a working solution yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Require cycles are allowed, but can result in uninitialized ...
js This is what triggers the Require cycle warning because a module that was imported from one place, is then rendering and asking...
Read more >
[React Native]: Require cycle warning · Issue #1448 - GitHub
Issue Description. Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
Read more >
Prevent Require Cycle warnings on terminal-React Native
Prevent Require Cycle warnings on terminal · Require cycles are allowed, but can result in uninitialized values. · Require cycle while requiring store...
Read more >
React and Redux: Require cycle (how to get rid of it?) - Reddit
And store is exported in src/redux/index.ts as I said. There you go, this is the cycle. React throws me a warning like, come...
Read more >
Realm node package has "cycle" warnings - MongoDB
Chrome debugger outputs the following warning that appears to cause circular references and possible memory leaks. Require cycle: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found