【问题标题】:'Could not find source file at index.ios.js' when I run 'react-native bundle --minify'当我运行“react-native bundle --minify”时,“在 index.ios.js 中找不到源文件”
【发布时间】:2015-09-25 19:51:30
【问题描述】:

我正在尝试将我的本地反应提交到应用商店。当我从项目的根文件夹运行 react-native bundle --minify 时,出现以下错误:

Building package...

/AppName/node_modules/react-native/node_modules/promise/lib/done.js:10
      throw err;
            ^
NotFoundError: Could not find source file at index.ios.js
    at /AppName/node_modules/react-native/packager/react-packager/src/DependencyResolver/DependencyGraph/index.js:169:15
    at tryCallOne (/AppName/node_modules/react-native/node_modules/promise/lib/core.js:37:12)
    at /AppName/node_modules/react-native/node_modules/promise/lib/core.js:103:15
    at flush (/AppName/node_modules/react-native/node_modules/promise/node_modules/asap/raw.js:50:29)
    at process._tickCallback (node.js:355:11)

【问题讨论】:

    标签: ios react-native


    【解决方案1】:

    我想通了。 index.ios.js 需要在 root/main 目录中。我把它放在我创建的目录中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-10
      • 2015-02-01
      • 2015-08-22
      • 2021-04-10
      • 1970-01-01
      相关资源
      最近更新 更多