parse-community/parse-react

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

lucasdidur opened this issue · 15 comments

[Sat Jun 05 2021 14:37:43.521]  BUNDLE  ./index.tsx 

[Sat Jun 05 2021 14:37:46.691]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseACL.js -> ../../node_modules/parse/lib/react-native/ParseRole.js -> ../../node_modules/parse/lib/react-native/ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.693]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/canBeSerialized.js -> ../../node_modules/parse/lib/react-native/ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.694]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/canBeSerialized.js -> ../../node_modules/parse/lib/react-native/ParseRelation.js -> ../../node_modules/parse/lib/react-native/ParseOp.js -> ../../node_modules/parse/lib/react-native/arrayContainsObject.js -> ../../node_modules/parse/lib/react-native/ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.695]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/decode.js -> ../../node_modules/parse/lib/react-native/ParseACL.js -> ../../node_modules/parse/lib/react-native/ParseRole.js -> ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/canBeSerialized.js -> ../../node_modules/parse/lib/react-native/ParseRelation.js -> ../../node_modules/parse/lib/react-native/ParseOp.js -> ../../node_modules/parse/lib/react-native/decode.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.697]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseACL.js -> ../../node_modules/parse/lib/react-native/ParseRole.js -> ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/canBeSerialized.js -> ../../node_modules/parse/lib/react-native/ParseRelation.js -> ../../node_modules/parse/lib/react-native/ParseOp.js -> ../../node_modules/parse/lib/react-native/encode.js -> ../../node_modules/parse/lib/react-native/ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.697]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/canBeSerialized.js -> ../../node_modules/parse/lib/react-native/ParseRelation.js -> ../../node_modules/parse/lib/react-native/ParseOp.js -> ../../node_modules/parse/lib/react-native/encode.js -> ../../node_modules/parse/lib/react-native/ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.698]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseOp.js -> ../../node_modules/parse/lib/react-native/encode.js -> ../../node_modules/parse/lib/react-native/ParseOp.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.699]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseRelation.js -> ../../node_modules/parse/lib/react-native/ParseOp.js -> ../../node_modules/parse/lib/react-native/encode.js -> ../../node_modules/parse/lib/react-native/ParseRelation.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.701]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/canBeSerialized.js -> ../../node_modules/parse/lib/react-native/ParseRelation.js -> ../../node_modules/parse/lib/react-native/ParseOp.js -> ../../node_modules/parse/lib/react-native/ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.703]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseRelation.js -> ../../node_modules/parse/lib/react-native/ParseOp.js -> ../../node_modules/parse/lib/react-native/ParseRelation.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.704]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/canBeSerialized.js -> ../../node_modules/parse/lib/react-native/ParseRelation.js -> ../../node_modules/parse/lib/react-native/ParseOp.js -> ../../node_modules/parse/lib/react-native/unique.js -> ../../node_modules/parse/lib/react-native/ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.708]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/canBeSerialized.js -> ../../node_modules/parse/lib/react-native/ParseRelation.js -> ../../node_modules/parse/lib/react-native/ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.709]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/canBeSerialized.js -> ../../node_modules/parse/lib/react-native/ParseRelation.js -> ../../node_modules/parse/lib/react-native/ParseQuery.js -> ../../node_modules/parse/lib/react-native/ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.715]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseACL.js -> ../../node_modules/parse/lib/react-native/ParseRole.js -> ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/canBeSerialized.js -> ../../node_modules/parse/lib/react-native/ParseRelation.js -> ../../node_modules/parse/lib/react-native/ParseQuery.js -> ../../node_modules/parse/lib/react-native/OfflineQuery.js -> ../../node_modules/parse/lib/react-native/equals.js -> ../../node_modules/parse/lib/react-native/ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.718]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/canBeSerialized.js -> ../../node_modules/parse/lib/react-native/ParseRelation.js -> ../../node_modules/parse/lib/react-native/ParseQuery.js -> ../../node_modules/parse/lib/react-native/OfflineQuery.js -> ../../node_modules/parse/lib/react-native/equals.js -> ../../node_modules/parse/lib/react-native/ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.720]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/decode.js -> ../../node_modules/parse/lib/react-native/ParseACL.js -> ../../node_modules/parse/lib/react-native/ParseRole.js -> ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/canBeSerialized.js -> ../../node_modules/parse/lib/react-native/ParseRelation.js -> ../../node_modules/parse/lib/react-native/ParseQuery.js -> ../../node_modules/parse/lib/react-native/OfflineQuery.js -> ../../node_modules/parse/lib/react-native/decode.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.721]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/decode.js -> ../../node_modules/parse/lib/react-native/ParseACL.js -> ../../node_modules/parse/lib/react-native/ParseRole.js -> ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/decode.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.722]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/EventuallyQueue.js -> ../../node_modules/parse/lib/react-native/ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.722]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseACL.js -> ../../node_modules/parse/lib/react-native/ParseRole.js -> ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.722]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/SingleInstanceStateController.js -> ../../node_modules/parse/lib/react-native/ObjectStateMutations.js -> ../../node_modules/parse/lib/react-native/ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.723]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseObject.js -> ../../node_modules/parse/lib/react-native/unsavedChildren.js -> ../../node_modules/parse/lib/react-native/ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.724]  WARN     Require cycle: ../../node_modules/parse/lib/react-native/ParseUser.js -> ../../node_modules/parse/lib/react-native/ParseSession.js -> ../../node_modules/parse/lib/react-native/ParseUser.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Sat Jun 05 2021 14:37:46.725]  LOG      Running "MonorepoApp" with {"rootTag":351,"initialProps":{}}

Would you mind to provide more details on how you got those warnings?

These warnings come from the parse javascript. I think you can ignore the warning. This is something the maintainers will have to resolve. I dont think it belongs here;
If you dont want to see the warnings, find the following file in your node_modules directory;
\node_modules\metro\src\lib\polyfills\require.js
and comment out line 117

  // console.warn(
  //   `Require cycle: ${cycle.join(" -> ")}\n\n` +
  //     "Require cycles are allowed, but can result in uninitialized values. " +
  //     "Consider refactoring to remove the need for a cycle."
  // );

Keep in mind it will suppress this warning for everything, even require cycles you cause.

Hi... Any solution? here it only occurs when I call

Parse.setAsyncStorage(AsyncStorage);

`Require cycle: node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseObject.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\encode.js -> node_modules\parse\lib\react-native\ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\encode.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\encode.js -> node_modules\parse\lib\react-native\ParseRelation.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\decode.js -> node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\decode.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\EventuallyQueue.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\SingleInstanceStateController.js -> node_modules\parse\lib\react-native\ObjectStateMutations.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\unique.js -> node_modules\parse\lib\react-native\arrayContainsObject.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\unique.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\unsavedChildren.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseUser.js -> node_modules\parse\lib\react-native\ParseSession.js -> node_modules\parse\lib\react-native\ParseUser.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. ERROR TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[0], "../../../react-native/Libraries/vendor/emitter/EventEmitter").prototype.addListener')
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
BUNDLE ./index.js

WARN Require cycle: node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseObject.js
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\encode.js -> node_modules\parse\lib\react-native\ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\encode.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\encode.js -> node_modules\parse\lib\react-native\ParseRelation.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\decode.js -> node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\decode.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\EventuallyQueue.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\SingleInstanceStateController.js -> node_modules\parse\lib\react-native\ObjectStateMutations.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\unique.js -> node_modules\parse\lib\react-native\arrayContainsObject.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\unique.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\unsavedChildren.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. WARN Require cycle: node_modules\parse\lib\react-native\ParseUser.js -> node_modules\parse\lib\react-native\ParseSession.js -> node_modules\parse\lib\react-native\ParseUser.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle. ERROR TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[0], "../../../react-native/Libraries/vendor/emitter/EventEmitter").prototype.addListener')
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling unmountApplicationComponentAtRootTag). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
BUNDLE ./index.js

WARN Require cycle: node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\encode.js -> node_modules\parse\lib\react-native\ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\encode.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\encode.js -> node_modules\parse\lib\react-native\ParseRelation.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\decode.js -> node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\decode.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\EventuallyQueue.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\SingleInstanceStateController.js -> node_modules\parse\lib\react-native\ObjectStateMutations.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\unique.js -> node_modules\parse\lib\react-native\arrayContainsObject.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\unique.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\unsavedChildren.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseUser.js -> node_modules\parse\lib\react-native\ParseSession.js -> node_modules\parse\lib\react-native\ParseUser.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
ERROR TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[0], "../../../react-native/Libraries/vendor/emitter/EventEmitter").prototype.addListener')
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
info Reloading app...
BUNDLE ./index.js

WARN Require cycle: node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\encode.js -> node_modules\parse\lib\react-native\ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\encode.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\encode.js -> node_modules\parse\lib\react-native\ParseRelation.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\decode.js -> node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\decode.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\EventuallyQueue.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\SingleInstanceStateController.js -> node_modules\parse\lib\react-native\ObjectStateMutations.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\unique.js -> node_modules\parse\lib\react-native\arrayContainsObject.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\unique.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\unsavedChildren.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseUser.js -> node_modules\parse\lib\react-native\ParseSession.js -> node_modules\parse\lib\react-native\ParseUser.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
ERROR TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[0], "../../../react-native/Libraries/vendor/emitter/EventEmitter").prototype.addListener')
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling unmountApplicationComponentAtRootTag). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.`

Helpp... Tks...

I do not think Parse.setAsyncStorage(AsyncStorage); is the real cause. In my case, even I commented this statement out it still gave the warnings.

image

WARN Require cycle: node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-nat
ive\ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib
react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
WARN Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib
react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values.
These warnings come from the parse javascript. I think you can ignore the warning. This is something the maintainers will have to resolve. I dont think it belongs here;
If you dont want to see the warnings, find the following file in your node_modules directory;
\node_modules\metro\src\lib\polyfills\require.js
and comment out line 117

  // console.warn(
  //   `Require cycle: ${cycle.join(" -> ")}\n\n` +
  //     "Require cycles are allowed, but can result in uninitialized values. " +
  //     "Consider refactoring to remove the need for a cycle."
  // );

Keep in mind it will suppress this warning for everything, even require cycles you cause.

in my case, i found this to comment out in node_modules\metro-runtime\src\polyfills\require.js

here is my environment info

image

Would you mind to share the version of Parse JS SDK that you are using?

Hello, I just installed parse 3.3.0 freshly on react-native project and it throws the same errors mentionned about the cycle problem,

I'm trying to use Parse with react-native and I see that the issue is pointing to "import Parse from "parse/react-native.js";"
It's not if you are setting the async storage or not. The package throws these warnings when imported.

could you guys please try with the latest version of the parse js sdk?

I'm closing this issue. Please feel free to open it again in the case the problem persists.

@davimacedo it's still a issue on Parse 3.3.1

@phuongpt is it something that happen just when you install the lib? Or does it also happen when you install only the parse sdk?

@davimacedo It happens with the existing project. Actually this issue happens on Parse-SDK-JS for me. I don't use @parse/react or @parse/react-native.

In this case, would you mind to open an issue at the Parse-SDK-JS repo?

it's still a issue on Parse 3.4.0

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
 WARN  Require cycle: node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\encode.js -> node_modules\parse\lib\react-native\ParseRelation.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
 WARN  Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\canBeSerialized.js -> node_modules\parse\lib\react-native\ParseRelation.js -> node_modules\parse\lib\react-native\ParseQuery.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
 WARN  Require cycle: node_modules\parse\lib\react-native\decode.js -> node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\decode.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
 WARN  Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\EventuallyQueue.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
 WARN  Require cycle: node_modules\parse\lib\react-native\ParseACL.js -> node_modules\parse\lib\react-native\ParseRole.js -> node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\ParseACL.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
 WARN  Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\SingleInstanceStateController.js -> node_modules\parse\lib\react-native\ObjectStateMutations.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
 WARN  Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\unique.js -> node_modules\parse\lib\react-native\arrayContainsObject.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
 WARN  Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\unique.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
 WARN  Require cycle: node_modules\parse\lib\react-native\ParseObject.js -> node_modules\parse\lib\react-native\unsavedChildren.js -> node_modules\parse\lib\react-native\ParseObject.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
 WARN  Require cycle: node_modules\parse\lib\react-native\ParseUser.js -> node_modules\parse\lib\react-native\ParseSession.js -> node_modules\parse\lib\react-native\ParseUser.js