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 Warning on 13.6.0

See original GitHub issue

Require Cycle Warning on 13.6.0

WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/Rect.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/Circle.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/Ellipse.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/Polygon.tsx -> node_modules/react-native-svg/src/elements/Path.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/Line.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/Svg.tsx -> node_modules/react-native-svg/src/elements/G.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/Svg.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/Text.tsx -> node_modules/react-native-svg/src/elements/TSpan.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/Text.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/TextPath.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/Use.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/Image.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/Symbol.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/Defs.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/LinearGradient.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/RadialGradient.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/ClipPath.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/Pattern.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/Mask.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/Marker.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules/react-native-svg/src/ReactNativeSVG.ts -> node_modules/react-native-svg/src/elements/ForeignObject.tsx -> node_modules/react-native-svg/src/ReactNativeSVG.ts

Environment info

Run react-native info in your terminal and copy the results here. Also, include the precise version number of this library that you are using in the project

React native info output:

System:
    OS: macOS 13.0.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 75.58 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.11.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 8.19.2 - /opt/homebrew/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
    Android SDK:
      API Levels: 30, 31, 33
      Build Tools: 30.0.2, 30.0.3, 31.0.0, 33.0.0
      System Images: android-28 | Google ARM64-V8a Play ARM 64 v8a, android-29 | Google APIs ARM 64 v8a, android-29 | Google Play ARM 64 v8a, android-30 | Google Play ARM 64 v8a, android-31 | Google APIs ARM 64 v8a, android-31 | Google Play ARM 64 v8a, android-33 | Google APIs ARM 64 v8a
      Android NDK: Not Found
  IDEs:
    Android Studio: 2021.3 AI-213.7172.25.2113.9123335
    Xcode: 14.1/14B47b - /usr/bin/xcodebuild
  Languages:
    Java: 18.0.1 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.68.5 => 0.68.5 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Library version: 13.6.0

Steps To Reproduce

  1. Install react-native-svh
  2. run your project
  3. see warning in metro

Describe what you expected to happen:

  1. A clean metro terminal without require cycle warnings

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:5
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Fasteelcommented, Dec 3, 2022
0reactions
Fasteelcommented, Dec 1, 2022

+1, same issue

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 >
TS 136 413 - V13.6.0 - LTE - ETSI
In the present document "shall", "shall not", "should", "should not", "may", "need not", "will", "will not", "can" and. "cannot" are to be interpreted...
Read more >
End Of Life Policy - Imperva
LIFE CYCLE MILESTONE, DEFINITION ... Date (For hardware only), Imperva will try to provide 12 months notice of Last Order Date for each...
Read more >
Chef Infra Client Release Notes
Fixes missing require and small error in REST implementation(13066) - Shoutout to ... Resolved Ruby deprecation warnings in Ohai on Windows and macOS...
Read more >
Design Requirements Manual - Office of Research Facilities
NIH Design Requirements Manual (Issuance Notice 12/12/2016) Rev. 1.5: 3/5/2020 ... leased buildings, the life cycle cost shall be calculated.
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