Skip to content
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

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

Open
ymuichiro opened this issue Nov 4, 2021 · 0 comments

Comments

@ymuichiro
Copy link

I am using ReactNative.
When I call the following method, I get the following warn.

What should I do to avoid this?

import React from "react";
import {  View } from "react-native";
import { Button } from "react-native-elements";

function Frame() {
  const clickHandle = () => {
    const mnemonic = MnemonicScripts.generate();
    console.log(mnemonic);
  }
  return <View>
    <Button title="test" onPress={clickHandle}></Button>
  </View>
}
 WARN  Require cycle: node_modules\symbol-hd-wallets\dist\index.js -> node_modules\symbol-hd-wallets\dist\src\Network.js -> node_modules\symbol-hd-wallets\dist\index.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\symbol-hd-wallets\dist\index.js -> node_modules\symbol-hd-wallets\dist\src\Network.js -> node_modules\symbol-hd-wallets\dist\index.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\react-native-crypto\index.js -> node_modules\react-native-randombytes\index.js -> node_modules\sjcl\sjcl.js -> node_modules\react-native-crypto\index.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\symbol-hd-wallets\dist\index.js -> node_modules\symbol-hd-wallets\dist\src\Curves\NodeEd25519.js -> node_modules\symbol-hd-wallets\dist\index.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\symbol-hd-wallets\dist\index.js -> node_modules\symbol-hd-wallets\dist\src\ExtendedKey.js -> node_modules\symbol-hd-wallets\dist\index.js

I tried the following

  • Reinstall node_modules
  • Clearing the cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant