Sentry-react-native: YellowBox: Require cycle: Sentry.js -> RavenClient.js -> Sentry.js

Created on 17 Sep 2018  路  17Comments  路  Source: getsentry/sentry-react-native

馃react-native-sentry

Most helpful comment

I'm also seeing this issue (I'm developping on Linux, and testing on an android device, react-native 0.57).

In addition to the require cycle you mention, I have another one:

Require cycle: node_modules/react-native/Libraries/Network/fetch.js -> node_modules/react-native/Libraries/vendor/core/whatwg-fetch.js -> node_modules/react-native/Libraries/Network/fetch.js

Interestingly, commenting require('react-native-sentry'); gets rid of both warnings.

All 17 comments

I'm also seeing this issue (I'm developping on Linux, and testing on an android device, react-native 0.57).

In addition to the require cycle you mention, I have another one:

Require cycle: node_modules/react-native/Libraries/Network/fetch.js -> node_modules/react-native/Libraries/vendor/core/whatwg-fetch.js -> node_modules/react-native/Libraries/Network/fetch.js

Interestingly, commenting require('react-native-sentry'); gets rid of both warnings.

Same here

Same issue. Some of the dep resolution I have:

[email protected]:
  version "0.57.7"

react-native-sentry@^0.36.0:
  version "0.36.0"
  dependencies:
    "@sentry/wizard" "^0.9.5"
    raven-js "^3.24.2"

"@sentry/wizard@^0.9.5":
  version "0.9.7"
  dependencies:
    "@sentry/cli" "^1.30.1"
    chalk "^2.3.1"
    glob "^7.1.2"
    inquirer "^5.1.0"
    lodash "^4.17.5"
    open "^0.0.5"
    r2 "^2.0.0"
    read-env "^1.1.1"
    xcode "^1.0.0"
    yargs "^11.0.0"

"@sentry/cli@^1.30.1":
  version "1.31.0"
  dependencies:
    https-proxy-agent "^2.1.1"
    node-fetch "^1.7.3"
    progress "2.0.0"
    proxy-from-env "^1.0.0"

raven-js@^3.24.2:
  version "3.25.1"

@chpill I opened this issue for this specific warning about fetch/whatwg-fetch in react-native: https://github.com/facebook/react-native/issues/23130

Any idea on when this is going to be solved? :(

Is this a critic problem? Same here on OS: MacOS Platform: IOS

Same here and ignore it temporary

import { YellowBox } from 'react-native';
YellowBox.ignoreWarnings(['Require cycle:']); // Metro warning, Specific for Sentry
Was this page helpful?
0 / 5 - 0 ratings