React Native error: bundling failed: Error: Unable to resolve module `AccessibilityInfo` from...问题解决

转载请注明预见才能遇见的博客:http://my.csdn.net/

原文地址:https://blog.csdn.net/pcaxb/article/details/82258292

React Native error: bundling failed: Error: Unable to resolve module `AccessibilityInfo` from...问题解决

目录

1.Unable to resolve module `AccessibilityInfo` from `xxx`: Module does not exist in the module map

2.Module build failed: Error: Plugin 0 specified in “base” … provided an invalid property of “default”


1.Unable to resolve module `AccessibilityInfo` from `xxx`: Module does not exist in the module map

按照报错信息中的四个方法都没有解决此问题, 后来在github的问题讨论中找到了一条不起眼的答案. 
按照上面教程走下来后安装的是最新的ReactNative(现在是0.56), 这个问题可能是新版本的bug, 降级到0.55即可.

解决方案: 
1. 在工程目录下执行 npm install --save [email protected]

2.Module build failed: Error: Plugin 0 specified in “base” … provided an invalid property of “default”

解决方案:

1.在工程目录下执行 npm install --save-dev [email protected]

参考资料:

https://blog.csdn.net/j550341130/article/details/81027700

https://blog.csdn.net/aceaddi/article/details/81148585

React Native error: bundling failed: Error: Unable to resolve module `AccessibilityInfo` from...问题解决

博客地址:https://blog.csdn.net/pcaxb/article/details/82258292