Skip to content

Require cycle warning on React Native Web #6

@michailbrynard

Description

@michailbrynard

We have a react native project using fireblocks/react-native-ncw-sdk as a dependency. When bundling for web using npx expo start --web , we get the following warning:

Web Bundled 411ms index.js (1 module)
λ  WARN  Require cycle: node_modules/@fireblocks/react-native-ncw-sdk/lib/commonjs/index.js -> node_modules/@fireblocks/react-native-ncw-sdk/lib/commonjs/FireblocksNCWFactory.js -> node_modules/@fireblocks/react-native-ncw-sdk/lib/commonjs/index.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
  factory (node_modules/@fireblocks/react-native-ncw-sdk/lib/commonjs/FireblocksNCWFactory.js:21:7)
  factory (node_modules/@fireblocks/react-native-ncw-sdk/lib/commonjs/index.js:55:3)

We have not noticed any issues due to this warning as we have been focused on android and ios, but it would be good to resolve if possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions