【问题标题】:react-native bundling failed: Error: Cannot find module /metro-react-native-babel-transformer/src/index.jsreact-native 捆绑失败:错误:找不到模块 /metro-react-native-babel-transformer/src/index.js
【发布时间】:2020-01-13 13:10:28
【问题描述】:

我尝试使用rn-diff-purge https://react-native-community.github.io/upgrade-helper/?from=0.59.8&to=0.60.5react-native 版本从0.59.8 升级到0.60.5

然后我得到了

错误:捆绑失败:错误:找不到模块'/myapp/node_modules/@react-native-community/cli/node_modules/metro-react-native-babel-transformer/src/index.js

运行时react-native run-ios

如何解决这个捆绑问题?

【问题讨论】:

  • 你安装 pod 了吗??
  • 是的,我安装了 pod

标签: react-native


【解决方案1】:

在找到/研究了几天的解决方案之后。 最后,我找到了解决方案并通过这样做来修复https://github.com/facebook/react-native/issues/25585#issuecomment-518357303

【讨论】:

    猜你喜欢
    • 2019-09-04
    • 2019-02-24
    • 2021-10-28
    • 2019-06-09
    • 2021-09-03
    • 2022-09-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多