'錯誤:加載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模擬器中的設置


注意!

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



 
粤ICP备14056181号  © 2014-2020 ITdaan.com