-
Notifications
You must be signed in to change notification settings - Fork 24k
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
Runtime error after upgrade to React Native 0.61 - "TypeError: hmrClient.send is not a function" #26958
Comments
What fixed it for me was to update |
I just upgraded to React Native 0.61.4 and I'm getting this issue. |
I am getting this too after an upgrade from 0.59.10 to 0.61.4. I don't have |
@AlexUzan what exactly packages do you upgrade to 0.56 ? |
Thanks all! Got back to this today and can confirm that for me this was caused by a project-level dependency on |
I had the same issue with a React Native app, initialised without the use of expo. 'hrmClient.send is not a function' displayed every time I build/refreshed my app and fast refresh was not working. This fixed my problem: from: https://www.gitmemory.com/issue/react-native-community/releases/140/530142204 |
This worked for me...Thanks a lot 👍 |
I had the same issue. For me the fix was to delete the react-native-paper package (it was causing the issue) and yarn add metro@0.56.0 thanks to @Doenja |
I am in the process of updating an existing project from react-native
0.60.4
to0.61.2
. The app is successfully packaged and installs on my local iOS Simulator. The Metro Bundler successfully serves the app to the device. My observations are as follows:TypeError: hmrClient.send is not a function.
is displayed on every launch, regardless of whetherFast Refresh
is enabled or disabled.React Native version:
Error output
Other notes
Interestingly, this isn't caught by this preceding
invariant
statement in theenable
ordisable
members ofHMRClient
. I suspect it's related to some misalignment withinHMRClient.js
or any corresponding native code.react-native/Libraries/Utilities/HMRClient.js
Lines 67 to 72 in 10f55e7
The text was updated successfully, but these errors were encountered: