Require Cycle Warning on 13.6.0
See original GitHub issueRequire 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
- Install react-native-svh
- run your project
- see warning in metro
Describe what you expected to happen:
- A clean metro terminal without require cycle warnings
Issue Analytics
- State:
- Created 10 months ago
- Reactions:5
- Comments:8 (2 by maintainers)
Top GitHub Comments
Here my proposal 👼 https://github.com/software-mansion/react-native-svg/pull/1929 🙏
+1, same issue