【问题标题】:Unable to resolve module when trying to build尝试构建时无法解析模块
【发布时间】:2021-01-29 09:12:06
【问题描述】:

我正在尝试为我的 ios react native 项目构建 main.jsbundle,但是当我尝试运行此 cmd 时,我不断收到此错误:- react-native bundle --entry-file index.js --platform ios - -dev false --bundle-output ios/main.jsbundle --assets-dest ios

This is the error that i am getting when i run this command

【问题讨论】:

  • 再次尝试安装@react-native-community/push-notification-ios 并使用自动链接(npx pod-install)

标签: ios react-native expo


【解决方案1】:

安装@react-native-community/push-notification-ios 并使用自动链接(npx pod-install)

@react-native-community/push-notification-ios

【讨论】:

    【解决方案2】:

    安装这个库

    添加@react-native-community/push-notification-ios

    在终端中运行此命令以进行自动链接

    npx pod 安装

    更多内容请阅读本文

    https://github.com/react-native-push-notification-ios/push-notification-ios
    

    【讨论】:

      猜你喜欢
      • 2018-07-23
      • 1970-01-01
      • 2023-02-16
      • 2016-04-19
      • 2022-07-11
      • 2022-11-02
      • 1970-01-01
      • 1970-01-01
      • 2022-10-21
      相关资源
      最近更新 更多