Skip to content

[React Native]: Require cycle warning #1448

Closed
@anhtuank7c

Description

@anhtuank7c

New Issue Checklist

Issue Description

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

Steps to reproduce

Run with React Native project

Expected Outcome

Not to have require cycle, resolve the warning

Environment

System:
    OS: macOS 12.2
    CPU: (8) arm64 Apple M1
    Memory: 84.22 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.17.3 - ~/.nvm/versions/node/v14.17.3/bin/node
    Yarn: 1.22.17 - ~/.yarn/bin/yarn
    npm: 6.14.13 - ~/.nvm/versions/node/v14.17.3/bin/npm
    Watchman: 2022.01.31.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
    Android SDK:
      API Levels: 28, 29, 30, 31
      Build Tools: 27.0.3, 29.0.2, 30.0.0, 30.0.2, 31.0.0
      System Images: android-25 | Android Wear ARM EABI v7a, android-30 | Google Play ARM 64 v8a
      Android NDK: Not Found
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7621141
    Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_292 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.66.4 => 0.66.4 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Client

  • Parse JS SDK version: 3.4.0

Logs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions