反应性红屏错误 [英] react-native red screen error

查看:121
本文介绍了反应性红屏错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从git安装了新应用程序,但是我遇到了这个红色屏幕错误,有人可以帮帮我.

I have installed new application from git but i'm having this red screen error can some one help me out.

   ReferenceError: Can't find variable: process (http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:2506) 
E/unknown:React( 2312): 
E/unknown:React( 2312): Try the following to fix the issue: E/unknown:React( 2312): • Ensure that the packager server is running E/unknown:React( 2312): • Ensure that your device/emulator is connected to your machine and has USB debugging enabled - run 'adb devices' to see a list of connected devices 
E/unknown:React( 2312): • Ensure Airplane Mode is disabled E/unknown:React( 2312): • If you're on a physical device connected to the same machine, run 'adb reverse tcp:8081 tcp:8081' to forward requests from your device 
E/unknown:React( 2312): • If your device is on the same Wi-Fi network, set 'Debug server host & port for device' in 'Dev settings' to your machine's IP address and the port of the local dev server - e.g. 10.0.1.1:8081

此输出是adb logcat.

this output is adb logcat.

我创建了github问题,任何人都可以参考没事

I have created the github issue any one can refer isssue

推荐答案

我的问题是我升级时react-native中的native-base模块不匹配. 查看此问题,并执行npm clean cache.

My problem is mismatch of the native-base module in react-native when i upgraded. checkout this issue and also do npm clean cache.

我还删除了node_module并重新安装.

I also deleted node_module and reinstalled.

我选择了native-base": "0.5.15" react-native : "0.33.1" and react is "15.3.1",一切都开始正常工作.

I went with native-base": "0.5.15" react-native : "0.33.1" and react is "15.3.1" and everything started working fine.

还要 facebook故障排除

这篇关于反应性红屏错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆