我的代码一直在得到错误“在机箱'libp2p‘中找不到函数’。当我进入libp2p库(单击编辑器中的导入语句)时,它将显示libp2p文件(lib.rs)中的函数development_transport。有人知道为什么找不到这个函数吗?提前谢谢。use libp2p::futures::StreamExt;use libp2p::swarm::{Swarm, SwarmEvent};
use
因此,我尝试使用React Native运行一个libp2p节点。在请求libp2p之后,我得到了错误:bundling failed: UnableToResolveError: Unable to resolve module `events` from `<fullpath>/node_modules/libp2p/src/index.js`: Module does not exist in the module map
这是React Native抱怨它找不到或者更确切地说,如果