我试图将我的反应原生提交到应用商店。当我从项目的根文件夹运行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)
答案 0 :(得分:0)
我明白了。 index.ios.js需要位于root / main目录中。我把它放在我创建的目录中。