-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
0.62 Fast Refresh doesn't work #28420
Comments
|
Might be related to this #27029 |
|
same issue here, normal refresh doesnt work either |
I just looked through the other thread and this seems to be specific to RN 0.62 for me as well. Fast refresh is not working with the debugger on or off. With React Native Debugger running, I can see the correct code, but the iOS simulator is not showing any updates. So it looks like this specific issue isn't with RN debugger like #27029 The fast refresh banner is showing after a save, but that's it, nothing on the screen is updated unless I reload the entire app. I verified that the bundle itself is updating at: I tried everything else I could from the other thread. I updated XCode to the latest version. Cleaned/wiped all simulators. Upgraded all libraries. Ran react-native-clean-project and still nothing. The fast refresh simply isn't using the latest bundle. Here's an update showing how the console is outputting something different than what's in the code itself. |
For me the solution was |
Also facing this issue after upgrading to 0.62 and can confirm it is not fixed by upgrading to the latest 0.63 release either. Have tried every suggestion in the linked threads but file changes are never detected and pushed to the app. |
I've came across the same issue on 0.62 and 0.63 and found a fix by starting the packager in the default terminal instead of VSCode. Maybe the problem is in VSCode? |
For me I have a problem that fast refresh is shown disabled, but in fact it is enabled... |
In my case, not only the fast refresh didn't work, but the regular reload as well - all the code remained the same up until I restarted packager with Sadly, for now, my only solution is to downgrade RN to 0.61.4 where fast refresh and regular reload started working again. What's interesting, the same cloned repo with RN 0.63.0 had no issues on another machine and the only notable differences between that machine and mine is that it has slightly higher versions of macOS and xCode. UPD: A minor clarification: restarting the packager and reopening an app on the device updated for the latest code changes (no app rebuilding was required). Still, that is quite tedious. UPD2: Tried running the app with watchman logging |
I found that using |
I was finally able to get at least regular reload working by running bundler with Why did this issue occur only on my machine is still a mystery (tried running project on couple of other Macs and everything was fine). |
@Orange9000 that didn't help me |
I was facing this issue few minutes ago, I managed to get it work by following the instructions below
Also, I tried |
I'm experiencing a similar issue on 0.63, but in my case any JS update triggers the full bundle reload (instead of just fast refresh) |
Experiencing the same problem on 0.63.2. Fast refresh rarely works and JS bundle reloads are randomly triggered. Also, when this happens, the bundle is reloaded multiple times instead of just once. Only happens on Windows. Works fine on macOS. EDIT: |
What worked for me was adding loose: true to plugin-proposal-class-properties
|
@xfyre did you get it fixed? i'm having the same problem you are. |
@iamdavidmartin Not really; but im my case this behavior is probably caused by |
@xfyre fast refresh hasn't worked for me for months. i tried all the advice in all the threads i could find and it did not work. this morning i installed some osx updates and to my complete surprise, it's working now. maybe the reboot after i tried everything helped. |
My Fast Refresh stops working randomly after some time. In the pasts month I used to reopen the app, run I found out that in my VsCode it may starts working again if I run |
@Orange9000 it's work for me! Thx. only working 0.61.5 here's my environment.
|
Just want to follow up this thread as I'm having the same issue |
Facing same issue on here's my env System:
OS: macOS 11.0.1
CPU: (8) arm64 Apple processor
Memory: 73.06 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
Android SDK:
API Levels: 29, 30
Build Tools: 28.0.3, 29.0.2, 30.0.3
System Images: android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
Binaries:
Node: 15.8.0 - ~/.nvm/versions/node/v15.8.0/bin/node
Yarn: 1.22.10 - ~/.nvm/versions/node/v15.8.0/bin/yarn
npm: 7.5.1 - ~/.nvm/versions/node/v15.8.0/bin/npm
Watchman: 4.9.0 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
Homebrew: 3.0.0 - /opt/homebrew/bin/brew
pip3: 21.0.1 - /opt/homebrew/bin/pip3
RubyGems: 3.0.3 - /usr/bin/gem
Utilities:
Make: 3.81 - /usr/bin/make
GCC: 4.2.1 - /usr/bin/gcc
Git: 2.24.3 - /usr/bin/git
Clang: 1200.0.32.29 - /usr/bin/clang
FFmpeg: 4.3.1 - /opt/homebrew/bin/ffmpeg
Virtualization:
Docker: 20.10.1 - /usr/local/bin/docker
|
After trying some of the solutions, only |
hi all, same issue for me RN 0.64, metro-bundler has never been launched automatically anymore. |
@Piteraguayo cannot find index.lock in my .git folder, I've got index and not index.lock |
This can help someone : https://stackoverflow.com/questions/63788454/fast-refresh-in-react-native-always-fully-reload-the-app TL;DR: don't use default exports with no name for the components |
Hi @smanzini sorry I did not see your message before. If you are on Mac, maybe it's not showing the extension :) |
Note: If you're like me, Fast Refresh might technically work for you (a message saying 'Refreshing...' shows up when you do a code change), but the entire app reloads on the code change. This is because Fast Refresh will fall back to a full reload of the app in some cases. To fix this, see this thread. The naming fix shown there fixed my problem. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
See my thread #32001 (comment) |
Sorry if this is an off topic note on this issue, but it may save someone's day. I had an issue with react-native debugger and fast refresh - debugger simply wouldn't launch no matter what and fast refresh would throw a note that it's refreshing, but content changes didn't go through. After a day of playing hide and seek with version control to figure out when and where things went wrong I found that the issue was with calling my sidebar component in react-navigatior (see image attached) I'm still a bit puzzled as of why it had such a significant impact on metro bundler, but that's what broke and fixed it for me. |
@BruceSuperProgramer , that was it, OMG! I'm not even sure why I had that "resolutions" part in my package.json - must have been something needed in the previous project. |
I'm facing a problem, my app is working very slowly, tap happens after 3-4 seconds, I'm using the socket in my app as it's based on the stock market.. my app works slowly, should I try the above solutions |
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days. |
This issue was closed because the author hasn't provided the requested feedback after 7 days. |
I used this command
npx react-native run-ios
When I run react-native and I edit some codes, fast refresh doesn't work.
instead, I can see downloading javascript bundle.
please check this issue!
The text was updated successfully, but these errors were encountered: