Getting warning : Consider refactoring to remove the need for a cycle

Bug report


Getting below warning(Maps work fine):
Require cycle: node_modules\react-native-maps\lib\components\MapView.js -> node_modules\react-native-maps\lib\components\MapPolygon.js -> node_modules\react-native-maps\lib\components\MapView.js

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

Environment info

react-native info output:

(node:9464) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
    OS: Windows 10 10.0.19042
    CPU: (8) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
    Memory: 966.43 MB / 7.85 GB
    Node: 15.5.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.4.0 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
    Android SDK:
      API Levels: 28, 29, 30
      Build Tools: 28.0.3, 29.0.2, 30.0.3
      System Images: android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
      Android NDK: Not Found
    Windows SDK: Not Found
    Android Studio: Not Found
    Visual Studio: Not Found
    Java: 1.8.0_192
    Python: 3.9.1
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1
    react-native: 0.63.4 => 0.63.4
    react-native-windows: Not Found
    *react-native*: Not Found

1 possible answer(s) on “Getting warning : Consider refactoring to remove the need for a cycle