【RN踩坑】bundling failed: Error: Unable to resolve module /../react-transform-hmr/lib/index.js


配置了半天开发环境终于可以运行项目了。结果模拟器上一篇飘红。
【RN踩坑】bundling failed: Error: Unable to resolve module /../react-transform-hmr/lib/index.js红屏解决办法

解决办法:
1.执行命令react-native start --reset-cache (这个终端不要关掉)
2.另外在开一个终端。继续执行react-native run-iosreact-native run-android即可

参考:https://github.com/facebook/react-native/issues/21530

相关文章:

  • 2020-06-21
  • 2022-12-23
  • 2021-11-19
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-13
  • 2021-04-23
  • 2021-06-25
  • 2021-05-06
  • 2022-12-23
  • 2021-08-19
  • 2022-12-23
相关资源
相似解决方案