#ReactNative 配置后出现该问题(unable to load script.Make sure you’re either running a Metro server (run ‘react-native start’) or that your bundle 'index.android.bundle’is packaged correctly for release)
一种可能的原因
记录于 2019.12.25
Node.js 版本太高
Node.js(12.14) + react-native(0.61.5) = 出现该问题
Node.js(12.9.0) + react-native(0.61.5) = 没问题
本文记录了一种在ReactNative配置中遇到的问题:无法加载脚本。问题出现在使用Node.js版本12.14与react-native版本0.61.5组合时。解决方案是将Node.js版本回滚到12.9.0。
2万+

被折叠的 条评论
为什么被折叠?



