Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Module HMRClient is not a registered callable module (calling enable) in Linux

enter image description here

First When I created the app with react-native init project1 . I was getting an error as below

Unable to load script from assets index.android.bundle on windows

Later I solved this issue by running following commands Stackoverflow link

mkdir android/app/src/main/assets

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

react-native run-android

But later I am getting an error like this and not able to solve, Module HMRClient is not a registered callable module (calling enable)

like image 371
Anand S Avatar asked Jan 28 '26 13:01

Anand S


1 Answers

This is the common occurred problem, but there will not be some problem in bundling the app, Just follow some common steps and it worked for me. Delete node_module folder and install npm

rm -rf node_modules && npm install

cd android && ./gradlew clean

then cd .. && react-native run-android

like image 137
Kiran Ghatage Avatar answered Jan 31 '26 18:01

Kiran Ghatage



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!