react-native / expo:Live Reload / Hot Reload不可用

问题描述 投票:0回答:2

当我用expo打开开发人员菜单时,它说:

Live Reload unavailable

Hot Reloading unavailable

我根据需要登录,我也尝试使用QR代码加载应用程序,但它没有帮助。

.expo / settings.json:

{
  "hostType": "lan",
  "lanType": "ip",
  "dev": true,
  "minify": false,
  "urlRandomness": "8s-6z3"
}

有这个,https://github.com/expo/expo/issues/1210,但我没有使用Expo XDE

我也尝试过:

watchman watch-del-all
rm -rf $TMPDIR/react-*
rm -rf $TMPDIR/metro-*
rm -rf $TMPDIR/haste-*
npm start -- --reset-cache

和:

watchman watch-del-all
rm -rf $TMPDIR/react-*
rm -rf node_modules
rm -f yarn.lock
yarn upgrade
yarn
npm install
expo start -c
javascript react-native npm expo livereload
2个回答
0
投票

它只是随机开始工作,我一直在开发人员菜单中使用Refresh选项来重新加载Expo

在终止expo start之后,我总是打开世博会。


0
投票

这不会直接回答OP,因为他的查询是完全不同的:在我的情况下问题是我错误地打开了生产模式,所以取消选中它帮助我再次热重新加载:

Image showing the location of production

© www.soinside.com 2019 - 2024. All rights reserved.