错误:undefined不是对象(评估\'RCTWebSocketManager.connect \') [英] Error: undefined is not an object (evaluating \'RCTWebSocketManager.connect\')

查看:363
本文介绍了错误:undefined不是对象(评估\'RCTWebSocketManager.connect \')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 React-native v0.10.0 并获取此屏幕:

好的,所以我发现我做错了。

Ok, So I figure out I m doing something wrong.

所以我从这个官方React-native网站下载了代码使用 pod React-native 集成到现有应用中。

So I downloaded the code from this official React-native website for integrating React-native into existing app using pod.

下载的代码使用 React-native v0.2.1 ,一切看起来都不错。
所以我复制了整个代码并覆盖了我的,但红色屏幕仍然出现。它只留下了 React-native 的更改ץ

The downloaded code uses React-native v0.2.1 and everything looks good there. So I copied the whole code and overrode mine, but the red screen still appears. It left me just with the changes of the React-nativeץ

是否有可能是当前版本的 React-native v0.10.1 根本不起作用? :/

Is there any chance that the current version of React-native v0.10.1 doesn't work at all? :/

提前致谢!

推荐答案

这看似相当简单,但请检查以确保已从目录中的node_modules目录中删除react-native应用程序的node_modules目录中的react-native-router。如果再次列出react-native,则应用程序将抛出错误。

This may seem rather trivial, but check to make sure that you have deleted react-native from the node_modules directory within the directory of react-native-router in the app's node_modules directory. If react-native is listed again the app will throw an error.

我曾多次遇到过这个问题,这就是造成错误的原因。

I have experienced this issue on a couple of occasions and this has been the cause for the error.

这篇关于错误:undefined不是对象(评估\'RCTWebSocketManager.connect \')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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