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

Hot Reloading - Packager does not rebuild code #16834

Closed
MajPay opened this issue Nov 15, 2017 · 2 comments
Closed

Hot Reloading - Packager does not rebuild code #16834

MajPay opened this issue Nov 15, 2017 · 2 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@MajPay
Copy link

MajPay commented Nov 15, 2017

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

@react-native-bot
Copy link
Collaborator

@facebook-github-bot no-template

@facebook-github-bot
Copy link
Contributor

Hey @MajPay, thanks for posting this! It looks like your issue is missing some required information. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce your issue. I am going to close this, but please feel free to open a new issue with the additional information provided. Thanks!

How to ContributeWhat to Expect from Maintainers

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Nov 15, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Nov 15, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Nov 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants