【问题标题】:How Can I fix error in Expo CLI after starting?启动后如何修复 Expo CLI 中的错误?
【发布时间】:2020-05-27 18:56:32
【问题描述】:

我正在从海龟币钱包分叉,我想运行 expo 客户端。但是,在我在 cli expo start 中执行之后,localhost 启动网站,构建 JavaScript 等,但是那里有一个错误:

{"type":"client_log","level":"warn","data":["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\n\nRequire cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle."]}.

【问题讨论】:

    标签: javascript react-native cryptocurrency


    【解决方案1】:

    发生此错误是因为您在文件中所做的导入以某种方式创建了循环依赖项。请check and verify all your imports carefully,你会很好的!

    【讨论】:

    • 如何检查它们?因为有很多节点模块,我发现这个目录是用错误代码编写的,但是现在是什么hm
    • 您无需检查node_modules,只需检查您的应用文件及其各自的导入!
    猜你喜欢
    • 2019-07-06
    • 2019-10-08
    • 2021-12-19
    • 2022-07-24
    • 2018-11-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多