question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reload & Live Reload & Hot Reload stop working

See original GitHub issue

Hi everyone,

I’m block on something really strange, my project stop detect file change and I don’t know why because I didn’t change anything since the last time I use it.

By example, if I start the packager by running react-native start or npm start and I change something in my sources files with hot reload and live reload enabled, nothing change and the packager doesn’t detect the change, even if I hit Command + R to force reload. The changes are only applied if I kill the packager and I run it again.

I don’t really know from where the problem came, but for this kind of problem I think about watchman, so I try to uninstall and install it again but nothing change, I see some ticket about it, and nothing change with all the steps describe in those tickets.

I also try to restart my computer, and try with a totally new project and with all the following commands:

rm -rf $TMPDIR/react-*
watchman watch-del-all
rm -rf ios/build/ModuleCache/* 
rm -rf node_modules/
npm cache clean
npm i

But it’s still the same… If someone can help me! 😃

react-native-cli -> 1.2.0
react-native -> 0.36.1
xcode -> 8.1
node -> 6.3.1
watchman -> 4.7.0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

23reactions
miquelfarrecommented, Nov 3, 2016

@magrinj Same happened to me today, 2 days lost. Try to uninstall/install again watchman. Use this command: rm -rf /usr/local/var/run/watchman/ && brew uninstall watchman && brew install watchman It worked for me.

1reaction
enisinanajcommented, Apr 16, 2018

For those who still have this problem in iOS check that you have the following line in AppDelegate.m: at about the 19th line

jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];

which in case you want to archive the app, should become:

jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug]: Live Reload not working. · Issue #1601 · remix-run/remix
I just did a brief experiment and moving a component into the app/ directory seems to fix it — i.e. causes changes to...
Read more >
[SOLVED] Hot-reload / live reloading not working - Questions
I use Framework7-cli to create a simple PWA without any problems. I solved the hot-reload (for Safari) by adding “inline: true” in webpack- ......
Read more >
Hot Reload is not working in my React App - Stack Overflow
Hot Reload is not working in my React App · This does happen sometimes. Do npm install and try adding some code. ·...
Read more >
Hot reloading/live reload stopped working, how do I fix this?
When reload isn't working that's occasionally a sign that the app can not connect to the package server - ie the app is...
Read more >
.NET Hot Reload support for ASP.NET Core | Microsoft Learn
To force the app to rebuild and restart, use the keyboard combination Ctrl + R in the command shell. When an unsupported code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found