'错误:加载react-native应用程序时无法读取未定义的属性'emit'

[英]'Error: Cannot read property 'emit' of undefined' when loading react-native application


Usually I'll refresh a few times and the app will start working again, but it's been going on and off for the past few hours, with 90% of the time, me getting this error.

通常我会刷新几次,应用程序将重新开始工作,但过去几个小时它一直在打开和关闭,有90%的时间,我收到此错误。

Do you have a suggestion about how to approach this mind-numbing problem?

你对如何解决这个令人头脑麻木的问题有什么建议吗?

This tends to happen after I install a new library with npm install. in this case it was react-native-sqlite. Sometimes npm update fixes it, though not this time

在使用npm install安装新库之后,这往往会发生。在这种情况下,它是react-native-sqlite。有时npm update会修复它,虽然不是这次

1 个解决方案

#1


0  

I fixed it by:

我修理了:

  1. deleting everything in my XCode 'Derived Data' folder
  2. 删除我的XCode“派生数据”文件夹中的所有内容

  3. rm -rf my node_modules
  4. rm -rf我的node_modules

  5. Reset settings in iOS Simulator
  6. 重置iOS模拟器中的设置

智能推荐

注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.itdaan.com/blog/2015/07/31/7205a58084544b7932c3a4433bc5ae9.html



猜您在找
Nodejs无法读取未定义错误的属性'emit' - Nodejs Cannot read property 'emit' of undefined error React-Native - 无法读取未定义的属性“cloneWithRowsAndSections” - React-Native - Cannot read property “cloneWithRowsAndSections” of undefined 流星反应错误:无法读取属性'0'的未定义 - Meteor React Error: Cannot read property '0' of undefined 无法读取未定义的属性'emit'(重复) - Cannot read property 'emit' of undefined (duplicate) React Enzyme Type错误:无法读取未定义的属性'propTypes' - React Enzyme Type Error:Cannot read property 'propTypes' of undefined
智能推荐
 
© 2014-2019 ITdaan.com 粤ICP备14056181号  

赞助商广告