[victory-native] Require cycle: node_modules/victory-vendor/lib-vendor/d3-interpolate/src/value.js -> node_modules/victory-vendor/lib-vendor/d3-interpolate/src/object.js #2230
Labels
Note: Victory native 📱
Related to Victory Native
Type: Docs 📖
This needs to be documented but won't need code changes
This issue is intended to serve as a placeholder for anyone searching for a solution to this issue. We can also use this as a reference for any duplicate issues.
As of
victory@36.4.0
, React Native apps (on both iOS and Android) will warn about require cycles.Explanation
These warnings are caused by the way certain
d3
packages have been written. You can see circular dependencies in the originald3
source.For example in object.js
import value from "./value.js";
then in value.js
import object from "./object.js";
However, it is important to note that this is not really an upstream issue. Circular dependencies are allowed in ES modules, which
d3
targets. In React Native, they will not break any functionality but Metro will warn about them.Solution
The maintainers discussed this internally, and ultimately agreed that for now we will provide additional guidance to disable the warnings via
LogBox
.The text was updated successfully, but these errors were encountered: