-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Android][0.24.1][Windows] packager not update when change js file content #7257
Comments
Have you tried restarting you packager/emulator/computer? Maybe check this issue: #306. Look at watchman, auto-saving. |
restart packager , computer have no effect. i have no idea with this |
+1, I got the same problem, live load and hot load both not working. [11:52:39] request:/index.android.bundle?platform=android&dev=true&hot=t |
at last . I found problem. problem still is timeout . but when timeout it not show message for us (still don't know why.). to solve this problem. in file "\node_modules\node-haste\lib\FileWatcher\index.js" and change function "_createWatcher"
to
now . every thing run normal . :D |
great solution InnerPeace080:+1: |
Thanks a lot, PeaceFromInside080 !!! ^_^ |
How to deal with Windows Platform? |
finally got the file path :\node_modules\react-native\node_modules\node-haste |
thanks |
thanks, that's work. |
I was stuck with this one for hours. @InnerPeace080 your solution saved my life! Amazing! :) |
You saved my day. Your solution works perfect. Thank you so much !!!! |
For the benefit of future Googlers, MAX_WAIT_TIME is located here : \node_modules\react-native\packager\react-packager\src\node-haste\FileWatcher\ |
Thank you very much @InnerPeace080! I was stucked in this for hours! |
Thank you all From the bottom of Stavro's heart! |
thanks! |
update node.js to 6.x may works |
Thank you @InnerPeace080 . On my windows system file path was :node_modules\react-native\packager\react-packager\src\node-haste\Filewatcher. |
This not good. The code is now like this. Error come up when I do replace `_createWatcher(rootConfig) {
}` |
Niccee!!!! Thank You !!!! |
@neilhanekom I'm in the process of testing this myself, but you can still change the pertinent value EDIT Totally still works, you don't have to replace the entire function, just change the value of the const. |
Summary: increase the `MAX_WAIT_TIME` in FileWatcher since live reloading doesn't work for a lot of users on windows when developing android. There may be a better timeout than arbitrarily tripling it, I'm sure the original developer would be able to pick out a good one, but many of us have used this change to finally be able to use RN here on windows. fixes #8784 #7257 Closes #10690 Differential Revision: D4126110 Pulled By: mkonicek fbshipit-source-id: 9b6f188fe9d39bcdcc2b38392dfc644a518296b2
Summary: increase the `MAX_WAIT_TIME` in FileWatcher since live reloading doesn't work for a lot of users on windows when developing android. There may be a better timeout than arbitrarily tripling it, I'm sure the original developer would be able to pick out a good one, but many of us have used this change to finally be able to use RN here on windows. fixes facebook#8784 facebook#7257 Closes facebook#10690 Differential Revision: D4126110 Pulled By: mkonicek fbshipit-source-id: 9b6f188fe9d39bcdcc2b38392dfc644a518296b2
Summary: increase the `MAX_WAIT_TIME` in FileWatcher since live reloading doesn't work for a lot of users on windows when developing android. There may be a better timeout than arbitrarily tripling it, I'm sure the original developer would be able to pick out a good one, but many of us have used this change to finally be able to use RN here on windows. fixes facebook#8784 facebook#7257 Closes facebook#10690 Differential Revision: D4126110 Pulled By: mkonicek fbshipit-source-id: 9b6f188fe9d39bcdcc2b38392dfc644a518296b2
Summary: increase the `MAX_WAIT_TIME` in FileWatcher since live reloading doesn't work for a lot of users on windows when developing android. There may be a better timeout than arbitrarily tripling it, I'm sure the original developer would be able to pick out a good one, but many of us have used this change to finally be able to use RN here on windows. fixes facebook#8784 facebook#7257 Closes facebook#10690 Differential Revision: D4126110 Pulled By: mkonicek fbshipit-source-id: 9b6f188fe9d39bcdcc2b38392dfc644a518296b2
Summary: increase the `MAX_WAIT_TIME` in FileWatcher since live reloading doesn't work for a lot of users on windows when developing android. There may be a better timeout than arbitrarily tripling it, I'm sure the original developer would be able to pick out a good one, but many of us have used this change to finally be able to use RN here on windows. fixes facebook#8784 facebook#7257 Closes facebook#10690 Differential Revision: D4126110 Pulled By: mkonicek fbshipit-source-id: 9b6f188fe9d39bcdcc2b38392dfc644a518296b2
Summary: increase the `MAX_WAIT_TIME` in FileWatcher since live reloading doesn't work for a lot of users on windows when developing android. There may be a better timeout than arbitrarily tripling it, I'm sure the original developer would be able to pick out a good one, but many of us have used this change to finally be able to use RN here on windows. fixes facebook#8784 facebook#7257 Closes facebook#10690 Differential Revision: D4126110 Pulled By: mkonicek fbshipit-source-id: 9b6f188fe9d39bcdcc2b38392dfc644a518296b2
Summary: increase the `MAX_WAIT_TIME` in FileWatcher since live reloading doesn't work for a lot of users on windows when developing android. There may be a better timeout than arbitrarily tripling it, I'm sure the original developer would be able to pick out a good one, but many of us have used this change to finally be able to use RN here on windows. fixes facebook#8784 facebook#7257 Closes facebook#10690 Differential Revision: D4126110 Pulled By: mkonicek fbshipit-source-id: 9b6f188fe9d39bcdcc2b38392dfc644a518296b2
Summary: increase the `MAX_WAIT_TIME` in FileWatcher since live reloading doesn't work for a lot of users on windows when developing android. There may be a better timeout than arbitrarily tripling it, I'm sure the original developer would be able to pick out a good one, but many of us have used this change to finally be able to use RN here on windows. fixes facebook/react-native#8784 facebook/react-native#7257 Closes facebook/react-native#10690 Differential Revision: D4126110 Pulled By: mkonicek fbshipit-source-id: 9b6f188fe9d39bcdcc2b38392dfc644a518296b2
I could not find node-haste folder in my node_modules folder. |
I could not find FileWatcher in my folder |
I gave my hours in finding FileWatcher in my folder but couldn't find. But anyways, in my case, the problem due to which my app wasn't updating on js fiile change is that somehow, using "npm run anroid" command, my app was by default running in production mode (that I came to know from cmd prompt). Then I restarted my system and things started working fine. |
My Problem was the following: I solved the problem through overriding the BuildConfig.class from: public final class BuildConfig {
} to: public final class CustomBuildConfig { |
I have this problem too, my react native version is 0.54.0, i restarted my system like rastogitech do, then it work fine... |
after i update react native to 0.24.1, I modify javascript code and save but packager server not detect this change. So reload js from my android have no effect.
anybody has some advance, thank very much.
The text was updated successfully, but these errors were encountered: