Skip to content

Hot Reloading - Packager does not rebuild code #16834

@MajPay

Description

@MajPay

Hey!

First i want to say, that react-native is pretty awesome and finally convinced me to give app development a try. Thank you so far!

Unfortunately something in my build system does not work anymore. I also created a stackoverflow question for this problem (link).

A summary of the problem:

"Hot reloading" does not work anymore. Everything used to work really well until some days ago. I dont know what changed but the functionality broke and that is very inconvenient. Once i apply changes to my code i can see the toast message "Hot Loading..." on my phone, so the "watching" seems to work. But i cant see the "bundling index.js..." line in my terminal (where i am running the packager via npm start or react-native start). Using the android emulator does not change anything.

If i shake the phone, which brings up the dev menu and select "Reload" i can actually see the bundling in the packager process (in my terminal) and the app reloads correctly.

In this issue i read, that a .lock file may prevent watchman from detecting the change, so i moved my yarn.lock to _yarnlock to test that. But that did not work (i also restarted the packager with [ctrl]+C and re-running npm start).

Reinstalling watchman (from source again) did not change the behavior either.

Watchman seems to work correctly, watchman watch-list brings up:

{
    "version": "4.9.0",
    "roots": [
        "/pah/to/my/react-native-app/root"
    ]
}

react-native info tells:

Environment:
  OS:  Linux 4.10
  Node:  7.10.0
  Yarn:  1.3.2
  npm:  4.2.0
  Watchman:  4.9.0
  Xcode:  N/A
  Android Studio:  Not Found

Packages: (wanted => installed)
  react: 16.0.0-beta.5 => 16.0.0-beta.5
  react-native: 0.49.3 => 0.49.3

Please help me, not only do i have to shake my phone all the time, also i need to re-tap all the elements to reach my target-screen :-)

Kind regards,
Philipp

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions