【问题标题】:Xcode / React Native - "Transform Error - unknown plugin 'module-resolver' "Xcode / React Native - “转换错误 - 未知插件'module-resolver'”
【发布时间】:2018-06-20 13:03:30
【问题描述】:

我正在为我的 React Native 项目在 Xcode 上运行构建,由于某种原因,在调试模式下运行构建时,出现以下错误: 'TransformError: [my directory] ​​: Unknown plugin "module-resolver" ' 在我的 babelrc 文件中。

我尝试通过 npm install module-resolver 来查看是否可以消除错误,但是模拟器仍然有同样的 TransformError 的红屏。

对此的任何帮助/指导都会非常有帮助。

谢谢

【问题讨论】:

    标签: xcode react-native ios-simulator babeljs


    【解决方案1】:

    您必须安装“babel-plugin-module-resolver”。

    你应该运行: npm install babel-plugin-module-resolver --save-dev

    https://www.npmjs.com/package/babel-plugin-module-resolver

    【讨论】:

      猜你喜欢
      • 2022-09-28
      • 1970-01-01
      • 1970-01-01
      • 2021-09-03
      • 2019-05-02
      • 1970-01-01
      • 2020-04-22
      • 1970-01-01
      • 2018-07-03
      相关资源
      最近更新 更多