react-native - 不存在捆绑 URL( native react )

标签 react-native

刚刚安装了 react native 并尝试启动并运行 Hello World。过去几个小时一直收到此错误:

 "No bundle URL present.Make sure you're running a packager server
 or have included a .jsbundle file in your application bundle."

我提到了这个:What means of no bundle URL present in react-native?和其他类似的问题,并尝试了一切:使用我的 IP 地址,在运行和不运行时使用 react-native run-iso 和 npm install 的不同组合,尝试删除构建,清理项目,重新启动 Xcode,多次模拟器,尝试 react-native -upgrade,编辑成.plist 以允许任意加载,手动设置我的 index.ios.js 的路径,一切正常,没有任何效果。

我注意到许多人在尝试在他们的设备上构建时遇到了这个问题。我不想做任何花哨的事情,只需启动并运行“hello world”即可。

我不知道的任何其他解决方案?

最佳答案

光盘进入 YOUR_PROJECT/iosrm -r build ,然后再次运行 react-native run-ios

关于react-native - 不存在捆绑 URL( native react ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43949607/

相关文章:

react-native - 我可以在平面列表中使用 ItemSeparatorComponent 中的组件吗?

firebase - Cloud Firestore上一组对象的数组vs. map vs.子集合

android - react native : Android WebView returns blank screen for some websites and some devices

android - 不允许 React Native 操作

react-native - 在 Text 组件内垂直对齐 Pressable

reactjs - react native 中的自定义警报对话框?

javascript - null 不是一个对象(评估 'this.state.noteArray' ) - React Native

ios - 如何在 React Native 中获取 iOS 版本?

ios - React-native:使用 zo0r/react-native-push-notification 显示前台通知,如后台通知

android - react native : Update app layout after the keyboard is shown