1.删除build, 重新运行, 没有work

> cd YOUR_PROJECT
> rm -r build   删除build文件夹
> react-native run-ios  再次运行

2.删除node_modules, npm i, 重新运行, 没有work

当模拟器正在启动,不要关闭你的bundler,重新

> npm install
> react-native run-ios

3.删除端口占用

lsof -i tcp:port
kill pid

mac端口占用

4.代理设置, 可能work了

之前设置用了xx-net,设置了代理。
禁用proxy,可能work了,因为我昨天晚上太迟去睡觉了,第二天运行,成功了。

参考:
https://powercoder23.wordpress.com/2017/10/29/solved-no-bundle-url-present/

相关文章:

  • 2021-10-14
  • 2021-11-16
  • 2021-05-18
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-11
  • 2021-09-16
  • 2022-12-23
  • 2021-06-26
  • 2021-03-30
  • 2021-06-03
  • 2021-12-21
相关资源
相似解决方案