新创建的RN发生的问题
2018-09-29 本文已影响0人
Happy_qaq
Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error:(Unable to resolve module `@babel/runtime/helpers/interopRequireDefault` from `/Users/yingnuosen/MyApp/index.js`: Module `@babel/runtime/helpers/interopRequireDefault` does not exist in the Haste module map
解决方法:yarn add @babel/runtime
新版本创建不会添加babel/runtime库 需要自己手动添加
感谢大神(金刀客)