-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require Cycle: lib/index.js -> lib/cycle.js -> lib/utils.js -> lib/index.js #25
Comments
Getting the same issue here using react native 0.57.4. Seems to be coming from metro: metro issue 287 |
I'm open to a PR to fix this. There isn't any concern with the way the cycle is setup since |
I'm not using React Native and don't have an emulator to check it, but I guess it's because of this part I introduced in #12: Lines 50 to 53 in bba3737
|
The solution is to patch Metro as indicated in facebook/metro#287 (comment). Let's keep the issue open for now, so others can find. |
I just updated a sample app dependencies and getting this error in code that seems out of my control.
|
This would require jsan to have react-native as a peerDep, something I'm not keen on. You could wrap this module in a module that makes that call and returns the jsan object. Shouldn't be too hard |
Another solution is to change |
This issue appeared after upgrading to react-native@0.57.4 and react@16.6.0-alpha.8af6728". Somewhere in react or react-native they recently added automatic tracking for require cycles.
So every time I run my application I now get a warning from react native, saying:
I'm using jsan@3.1.11
The text was updated successfully, but these errors were encountered: