Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native: No bundle url present #5

Open
timi-black opened this issue Aug 17, 2019 · 0 comments
Open

react-native: No bundle url present #5

timi-black opened this issue Aug 17, 2019 · 0 comments

Comments

@timi-black
Copy link
Contributor

timi-black commented Aug 17, 2019

错误详情

No bundle URL present.

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

RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
UIApplicationMain
main
start

解决步骤

  • 添加host 127.0.0.1 localhost,这是由于mac的localhost并不是指向127.0.0.1,可以使用nslookup localhost查看详情
Server:         192.168.1.1
Address:        192.168.1.1#53

因此当启动时就找不到对应的地址:

URL: http://192.168.1.1:8081/index.bundle?platform=ios&dev=true&minify=false

  • 删除/ios/build

  • react-native run-ios

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant