RN错误随笔 - Unable to resolve module 'AccessibilityInfo'

news/2024/7/4 0:56:23 标签: json
错误信息:.React Native 运行报错:Unable to resolve module 'AccessibilityInfo'
复制代码
可以看到在 异常的返回的JSON 结构中给出了推荐的解决方法 :

This might be related to https://github.com/facebook/react-native/issues/4968\n
To resolve try the following:\n  
1. Clear watchman watches: `watchman watch-del-all`.\n  
2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.\n  
3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.  
4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`."

然而:以上方法并没有什么卵用,所以 这里是个深坑,其实原因很简单。官方不知道是不是xxx有问题了,最新版本0.56的貌似存在问题,,,,不测试就发布吗?坑!
复制代码
解决方案:降级,

先卸载旧版本:

npm uninstall -g react-native-cli

npm uninstall -g react-native

再装上指定版本:

npm install -g react-native@0.55.4

npm install -g react-native-cli@1.2.0

 

创建项目时候 制定版本即可:

react-native init --version="0.55.4" aapName

 此时便可以正常运行起来!!!

 

转载于:https://www.cnblogs.com/Tmc-Blog/p/9869428.html


http://www.niftyadmin.cn/n/683161.html

相关文章

linux和性能相关的命令及系统性能诊断

author:skatetime:2011-03-09这是我总结的关于linux环境和性能相关的命令,以备查询内容: 一. 命令详解 二. 识别 cpu/io/ 内存 /network 瓶颈,及决方法啊 常用的…

Ubuntu 16.04下搭建samba服务器

一、Ubuntu下安装 sudo apt-get install samba sudo apt-get install smbclient 二、更改配置文件 sudo gedit /etc/samba/smb.conf 在最后添加如下信息: [share] comment Share Folder require password browseable yes path /home/carl/work/cm-h2 creat…

IEEE爬取摘要并翻译成中文

1 # -*- coding: utf-8 -*-2 """3 Created on Thu Oct 18 09:13:32 20184 5 author: Gawen6 7 实现爬取IEEE目标网页上该页所有论文的摘要8 并通过百度翻译api进行翻译9 并将链接与翻译后的摘要存到文本文档中10 其中百度的api的appid以及secertkey需要自己申请…

BLE软件基本框架介绍

BLE设备本身分为Host与Controller,并不是对应两个设备,而是一个设备的层次区分。如下图(使用网络复制图片,侵权删): 控制器部分(Controller): 1、物理层(PHY…

二进制安装kubernetes v1.11.2 (第十一章 node节点部署)

继续前一章部署。 十一、node节点部署 kubernetes node 节点运行了如下组件: flannel docker kubelet kube-proxy 11.1 部署flanneld 请参考 第五章 11.2 安装依赖包 centos: source /opt/k8s/bin/environment.sh for node_ip in ${NODE_IPS[]}doecho &…

insert优化

author:skate time:2010/10/19 insert优化 要想提高insert的速度,首先要知道什么影响insert慢,在执行insert的过程中产生redo和undo,要想提高insert的速 度,在充分利用系统资源的条件下就要尽量减少insert…

oracle碎片

author:skate time:2010-05-31 我们在使用windows的时候,都知道要定期整理磁盘碎片,因为磁盘碎片会影响性能,给管理上带来额外的 负担。那oracle更是如此,当随着数据增加,oracle处理海量数据本…

BLE基本状态与事件

1、 BLE广播事件: 在一个广播事件中,广播包会分别在三个广播通道中被发送一次(37,38,39); 2、BLE广播间隔: 是指两次广播事件之间的最小时间间隔,一般取值范围在20ms-10.24S之间,…