Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: React Refresh runtime should not be included in the production builds

Tags:

react-native

Running React Native 62.2 on Android Pixel 3 XL simulator AVD 29

Running React Native 62.2 on Android Pixel 3 XL simulator AVD 29

like image 809
SleepsOnNewspapers Avatar asked Nov 22 '25 14:11

SleepsOnNewspapers


2 Answers

For Thoose Who Are trying to run a production build. spent a few days on this. but these are the steps I did.

  1. yarn start -- --reset-cache

  2. yarn start

  3. To open developer menu press "d" ---- press d.

  4. disable - fast reloading.

  5. Go into settings and disable JS DEV MODE

  6. yarn start -- --reset-cache

  7. run the yarn or npm command to start your production build

like image 179
Stefan T Avatar answered Nov 24 '25 22:11

Stefan T


I set NODE_ENV=development, then it will worked for me. It's seem this bug occur because it automatically use production libraries instead.

like image 20
Christian Ho Avatar answered Nov 24 '25 23:11

Christian Ho



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!