Skip to content

Commit

Permalink
docs/build-run: Make small edits to new troubleshooting entry.
Browse files Browse the repository at this point in the history
Edits include:

* The error message doesn't appear on the terminal, but rather in a
  GUI in the app, and as a wrapped paragraph in sans-serif rather than
  as monospace.  (Also the wrapping here differs from the actual
  message.)  So use a plain quotation block rather than a code block.

* Fix the quoted error message slightly to match what's actually shown.

* Put a key phrase from the message in the heading.

* Write out the commands names in full, to help them be found by search.
  • Loading branch information
gnprice committed Jun 12, 2020
1 parent a4c838b commit a1db664
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/howto/build-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,15 +421,15 @@ sudo sysctl -p
```


### `react-native run-{android/ios}` launches the app, then crashes immediately
### Debug app crashes with "Unable to load script" at startup

After running `react-native run-android` or `react-native run-ios`, if
you see an error like this on the device:

> Unable to load script. Make sure you're either running a Metro
> server (run 'react-native start') or that your bundle
> 'index.android.bundle' is packaged correctly for release.
After running `react-native run-{android/ios}`, if you see an error like this
on the device:
```
Unable to load script.Make sure you are either running a Metro server
(run 'react-native start') or that your bundle 'index.android.bundle' is
packaged correctly for release.
```
then this means you are not running the Metro bundler.

Starting from React Native 0.60, you need to launch the Metro bundler server
Expand Down

0 comments on commit a1db664

Please sign in to comment.