gpt4 book ai didi

ios - 无法解析模块 react-native-blob-util

转载 作者:行者123 更新时间:2023-12-05 05:43:48 26 4
gpt4 key购买 nike

我遇到这个问题,当我们运行 yarn IOS 项目时 - 它正在成功构建并安装在模拟器上,

加载时,metro bundler 在某个点停止并抛出以下错误。

enter image description here

也尝试了以下步骤,没有运气。

  1. 清除守望者 watch :watchman watch-del-all
  2. 删除 node_modules:rm -rf node_modules 并运行 yarn install
  3. 重置 Metro 的缓存:yarn start --reset-cache
  4. 删除缓存:rm -rf/tmp/metro-*

请告诉我如何解决这个问题。

环境:MacBook Pro M1,RN 版本 - 0.61.5,Xcode - 13

最佳答案

尝试安装缺少的依赖项:

使用 npm

npm install react-native-blob-util --save

或使用 yarn :

yarn add react-native-blob-util

关于ios - 无法解析模块 react-native-blob-util,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71748744/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com